:root {
  --black:      #080c0b;
  --dark:       #0f1510;
  --teal:       #1e5c58;
  --teal-mid:   #2a7a75;
  --teal-light: #3a9e97;
  --gold:       #c4a35a;
  --gold-light: #dfc07e;
  --gold-dim:   #8a7040;
  --cream:      #f4efe4;
  --cream-mid:  #d6cdb8;
  --cream-dim:  #9c9282;
  --white:      #faf8f3;
  --section-light: #f0ebe0;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--black);
  color:var(--cream);
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:300;
  overflow-x:hidden;
  -webkit-user-select:none;
  -moz-user-select:none;
  user-select:none;
}
body::before{
  content:'';position:fixed;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none;z-index:0;opacity:0.25;
}

/* ── NAV ── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:9999;overflow:visible;
  padding:1rem 3rem;
  display:flex;justify-content:space-between;align-items:center;
  background:linear-gradient(to bottom,rgba(8,12,11,0.97),transparent);
  backdrop-filter:blur(4px);
  border-bottom:1px solid rgba(196,163,90,0.08);
}
.nav-logo img{height:52px;width:52px;display:block;border-radius:50%;object-fit:cover;}
.nav-links{display:flex;gap:2rem;list-style:none;}
.nav-links a{
  font-size:0.7rem;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--cream-mid);text-decoration:none;transition:color .3s;
}
.nav-links a:hover{color:var(--gold);}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:4px;}
.nav-toggle span{display:block;width:22px;height:1.5px;background:var(--cream);margin:5px 0;transition:all .3s;}

/* ── HERO ── */
.hero{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 55% 70% at 65% 45%, rgba(30,92,88,0.45) 0%,transparent 70%),
    radial-gradient(ellipse 35% 50% at 15% 75%, rgba(196,163,90,0.07) 0%,transparent 60%),
    linear-gradient(160deg,#080c0b 0%,#0d1a14 50%,#080c0b 100%);
}
.hero-grid{
  position:absolute;inset:0;
  background-image:linear-gradient(rgba(196,163,90,0.035) 1px,transparent 1px),linear-gradient(90deg,rgba(196,163,90,0.035) 1px,transparent 1px);
  background-size:70px 70px;
  mask-image:radial-gradient(ellipse at center,black 25%,transparent 72%);
}
.hero-content{
  position:relative;text-align:center;padding:2rem;max-width:860px;
}
.hero-eyebrow{
  font-size:0.65rem;letter-spacing:0.4em;text-transform:uppercase;
  color:var(--gold);margin-bottom:1.8rem;
  opacity:0;animation:fadeUp .8s ease .3s both;
}
.hero-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(3.8rem,11vw,8.5rem);
  font-weight:300;line-height:.92;color:var(--white);
  opacity:0;animation:fadeUp 1s ease .5s both;
}
.hero-title em{font-style:italic;color:var(--gold);}
.hero-subtitle{
  font-size:clamp(.95rem,1.8vw,1.2rem);color:var(--cream-mid);
  font-weight:300;margin:1.6rem 0 2.8rem;line-height:1.6;
  opacity:0;animation:fadeUp 1s ease .7s both;
}
.hero-cta{
  display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;
  opacity:0;animation:fadeUp 1s ease .9s both;
}
.hero-badge{
  position:absolute;bottom:2.5rem;right:3rem;
  border:1px solid rgba(196,163,90,0.25);padding:1rem 1.4rem;
  text-align:center;
  opacity:0;animation:fadeIn 1s ease 1.4s both;
}
.hero-badge-num{font-family:'Playfair Display',serif;font-size:2.2rem;color:var(--gold);line-height:1;}
.hero-badge-txt{font-size:0.58rem;letter-spacing:.22em;text-transform:uppercase;color:var(--cream-dim);margin-top:.3rem;}

/* ── BUTTONS ── */
.btn-primary{
  background:var(--gold);color:var(--black);border:none;
  padding:.9rem 2.2rem;font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;transition:all .3s;display:inline-block;
}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-2px);box-shadow:0 8px 24px rgba(196,163,90,.25);}
.btn-outline{
  background:transparent;color:var(--cream);
  border:1px solid rgba(196,163,90,.35);
  padding:.9rem 2.2rem;font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.72rem;font-weight:400;letter-spacing:.18em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;transition:all .3s;display:inline-block;
}
.btn-outline:hover{border-color:var(--gold);color:var(--gold);}

/* ── STATS ── */
.stats-bar{
  border-top:1px solid rgba(196,163,90,.1);
  border-bottom:1px solid rgba(196,163,90,.1);
  background:rgba(196,163,90,.025);
  padding:2rem 3rem;
  display:grid;grid-template-columns:repeat(4,1fr);
  position:relative;
}
.stat-item{text-align:center;padding:.8rem;position:relative;}
.stat-item:not(:last-child)::after{content:'';position:absolute;top:15%;bottom:15%;right:0;width:1px;background:rgba(196,163,90,.12);}
.stat-number{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:300;color:var(--gold);line-height:1;}
.stat-label{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--cream-dim);margin-top:.4rem;}

/* ── SECTIONS GENERAL ── */
section{padding:6rem 3rem;}
.section-eyebrow{font-size:.62rem;letter-spacing:.4em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;display:block;}
.section-title{font-family:'Playfair Display',serif;font-size:clamp(2.2rem,4.5vw,3.6rem);font-weight:300;line-height:1.08;color:var(--white);margin-bottom:1.2rem;}
.section-title em{font-style:italic;color:var(--gold);}
.section-title.dark{color:var(--black);}
.section-title.dark em{color:var(--teal);}

/* ── LIGHT SECTION ── */
.section-light{
  background:var(--section-light);
  color:var(--black);
}
.section-light .section-eyebrow{color:var(--teal);}
.section-light p{color:#4a4540;}

/* ── TEAL SECTION ── */
.section-teal{
  background:var(--teal);
  color:var(--cream);
}
.section-teal .section-eyebrow{color:var(--gold-light);}
.section-teal .section-title{color:var(--white);}
.section-teal .section-title em{color:var(--gold-light);}

/* ── CORSO ── */
.corso-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;}
.corso-text p{color:var(--cream-mid);line-height:1.85;font-size:.95rem;margin-bottom:1.2rem;}
.corso-highlight{
  margin:2rem 0;padding:1.5rem;
  border-left:3px solid var(--gold);
  background:rgba(196,163,90,.05);
}
.corso-highlight p{color:var(--cream);font-size:.9rem;line-height:1.7;margin:0;}
.corso-highlight strong{color:var(--gold);}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2rem;}
.feature-card{
  padding:1.4rem;border:1px solid rgba(196,163,90,.12);
  background:rgba(196,163,90,.02);transition:all .3s;
}
.feature-card:hover{border-color:rgba(196,163,90,.3);transform:translateY(-3px);}
.feature-icon{margin-bottom:.7rem;}
.feature-icon svg{width:24px;height:24px;stroke:var(--gold);fill:none;stroke-width:1.5;}
.feature-title{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);margin-bottom:.35rem;font-weight:500;}
.feature-desc{font-size:.82rem;color:var(--cream-dim);line-height:1.6;}

/* ── PROGRAMMA (light) ── */
.prog-grid{max-width:1200px;margin:0 auto;}
.prog-items{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(0,0,0,.08);margin-top:3rem;}
.prog-item{background:var(--section-light);padding:2.2rem;transition:background .3s;}
.prog-item:hover{background:#e8e0d0;}
.prog-num{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:300;color:rgba(30,92,88,.2);line-height:1;margin-bottom:.8rem;}
.prog-title{font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;color:var(--teal);margin-bottom:.6rem;font-weight:500;}
.prog-desc{font-size:.84rem;color:#5a5248;line-height:1.7;}

/* ── DOCENTE ── */
.docente-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:420px 1fr;gap:5rem;align-items:start;}
.docente-photo{position:relative;}
.docente-photo img{
  width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;
  border:1px solid rgba(196,163,90,.2);display:block;
}
.docente-photo-badge{
  position:absolute;bottom:-1rem;right:-1rem;
  background:var(--gold);color:var(--black);
  padding:.8rem 1.2rem;text-align:center;
}
.docente-photo-badge .years{font-family:'Playfair Display',serif;font-size:2rem;line-height:1;font-weight:300;}
.docente-photo-badge .years-label{font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;}
.docente-name{font-family:'Playfair Display',serif;font-size:3rem;font-weight:300;color:var(--white);margin-bottom:.2rem;}
.docente-role{font-size:.68rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:2rem;}
.docente-bio{color:var(--cream-mid);line-height:1.9;font-size:.92rem;margin-bottom:1.5rem;}
.docente-quote{
  font-family:'Playfair Display',serif;font-style:italic;
  font-size:1.3rem;color:var(--cream);border-left:2px solid var(--gold);
  padding-left:1.2rem;margin:2rem 0;line-height:1.5;
}
.tag-row{display:flex;flex-wrap:wrap;gap:.5rem;}
.tag{padding:.35rem .9rem;border:1px solid rgba(196,163,90,.22);font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dim);}

/* ── CORSI IN PARTENZA ── */
.corsi-head{max-width:1200px;margin:0 auto 3.5rem;display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:2rem;}
.promo-pill{
  background:rgba(196,163,90,.12);border:1px solid rgba(196,163,90,.3);
  padding:1.2rem 2rem;
}
.promo-pill-label{font-size:.6rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:.3rem;}
.promo-pill-price{font-family:'Playfair Display',serif;font-size:2.4rem;font-weight:300;color:var(--gold);line-height:1;}
.promo-pill-orig{font-size:.8rem;color:var(--cream-dim);text-decoration:line-through;margin-top:.15rem;}
.promo-pill-note{font-size:.62rem;color:var(--cream-dim);margin-top:.5rem;letter-spacing:.05em;}

.corsi-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.corso-card{
  border:1px solid rgba(196,163,90,.13);padding:2.2rem;
  background:rgba(196,163,90,.015);transition:all .3s;position:relative;overflow:hidden;
}
.corso-card::after{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  transform:scaleX(0);transition:transform .4s;
}
.corso-card:hover::after{transform:scaleX(1);}
.corso-card:hover{border-color:rgba(196,163,90,.3);transform:translateY(-4px);}
.card-label{font-size:.58rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:.5rem;}
.card-start-date{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:400;color:var(--white);margin-bottom:1.2rem;line-height:1.2;}
.card-start-date strong{color:var(--gold);}
.cal-btn{
  display:flex;align-items:center;gap:.5rem;
  background:rgba(196,163,90,.08);border:1px solid rgba(196,163,90,.2);
  color:var(--gold);font-size:.68rem;letter-spacing:.1em;
  padding:.5rem .9rem;cursor:pointer;transition:all .2s;
  font-family:'Plus Jakarta Sans',sans-serif;margin-top:1.5rem;margin-bottom:1rem;width:100%;
}
.cal-btn:hover{background:rgba(196,163,90,.15);border-color:rgba(196,163,90,.4);}
.card-dates{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:300;color:var(--white);margin-bottom:1.4rem;line-height:1.2;}
.card-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.04);font-size:.8rem;}
.card-row span:first-child{color:var(--cream-dim);}
.card-row span:last-child{color:var(--cream);font-weight:400;}
.card-price-row{display:flex;align-items:baseline;gap:.8rem;margin:1.4rem 0 1.5rem;}
.card-price-main{font-family:'Playfair Display',serif;font-size:2rem;color:var(--gold);font-weight:300;}
.card-price-orig{font-size:.85rem;color:var(--cream-dim);text-decoration:line-through;}
.card-price-tag{font-size:.58rem;letter-spacing:.1em;background:rgba(196,163,90,.12);color:var(--gold);padding:.2rem .5rem;text-transform:uppercase;}
.card-note{font-size:.72rem;color:var(--cream-dim);margin-top:1rem;line-height:1.5;padding-top:.8rem;border-top:1px solid rgba(255,255,255,.05);}

/* ── PERCHÉ (teal) ── */
.perche-grid{max-width:1200px;margin:3.5rem auto 0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
.perche-card{
  padding:2rem;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);transition:all .3s;
}
.perche-card:hover{background:rgba(255,255,255,.08);transform:translateY(-3px);}
.perche-icon svg{width:28px;height:28px;stroke:var(--gold-light);fill:none;stroke-width:1.5;margin-bottom:1rem;}
.perche-title{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-light);margin-bottom:.6rem;font-weight:500;}
.perche-desc{font-size:.83rem;color:rgba(244,239,228,.75);line-height:1.7;}

/* ── RECENSIONI (light) ── */
.recens-intro{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:2rem;margin-bottom:3rem;}
.recens-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.recens-card{
  background:#fff;border:1px solid rgba(0,0,0,.06);
  padding:2rem;transition:all .3s;overflow:hidden;
}
.recens-card:hover{box-shadow:0 12px 40px rgba(0,0,0,.1);transform:translateY(-3px);}
.recens-photo-wrap{aspect-ratio:1/1;overflow:hidden;margin:-2rem -2rem 1.5rem;width:calc(100% + 4rem);max-width:none;}
.recens-photo{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .4s;}
.recens-card:hover .recens-photo{transform:scale(1.03);}
.recens-stars{color:var(--teal);font-size:.9rem;letter-spacing:.1em;margin-bottom:1rem;}
.recens-text{font-size:.86rem;color:#4a4540;line-height:1.8;font-style:italic;margin-bottom:1.5rem;}
.recens-author{font-size:.65rem;letter-spacing:.2em;text-transform:uppercase;color:var(--teal-mid);}

.google-link{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--teal);text-decoration:none;
  border-bottom:1px solid rgba(30,92,88,.3);padding-bottom:.2rem;transition:all .3s;
}
.google-link:hover{color:var(--teal-mid);border-color:var(--teal-mid);}

/* ── CHATBOT ── */
.chatbot-inner{max-width:860px;margin:0 auto;}
.chatbot-subtitle{color:var(--cream-mid);font-size:.92rem;line-height:1.7;margin:.8rem 0 2.5rem;max-width:700px;}
.chat-window{background:rgba(196,163,90,.02);border:1px solid rgba(196,163,90,.13);overflow:hidden;}
.chat-header{
  background:rgba(30,92,88,.35);border-bottom:1px solid rgba(196,163,90,.1);
  padding:.9rem 1.4rem;display:flex;align-items:center;gap:.8rem;
}
.chat-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);animation:pulse 2s ease infinite;}
.chat-header-text{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);}
.chat-messages{
  height:340px;overflow-y:auto;padding:1.3rem;
  display:flex;flex-direction:column;gap:.9rem;scroll-behavior:smooth;
}
.chat-messages::-webkit-scrollbar{width:2px;}
.chat-messages::-webkit-scrollbar-thumb{background:var(--gold-dim);}
.msg{display:flex;gap:.7rem;max-width:85%;animation:msgIn .3s ease both;}
.msg.user{flex-direction:row-reverse;align-self:flex-end;}
.msg-av{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;flex-shrink:0;}
.msg.bot .msg-av{background:rgba(30,92,88,.4);}
.msg.user .msg-av{background:rgba(255,255,255,.08);}
.msg-av svg{width:16px;height:16px;stroke:var(--gold);fill:none;stroke-width:1.5;}
.msg-bubble{padding:.75rem 1rem;font-size:.85rem;line-height:1.6;}
.msg.bot .msg-bubble{background:rgba(255,255,255,.04);border:1px solid rgba(196,163,90,.1);color:var(--cream);border-radius:0 7px 7px 7px;}
.msg.user .msg-bubble{background:rgba(196,163,90,.1);border:1px solid rgba(196,163,90,.2);color:var(--cream);border-radius:7px 0 7px 7px;}
.typing-row{display:none;gap:4px;align-items:center;padding:.75rem 1rem;background:rgba(255,255,255,.04);border:1px solid rgba(196,163,90,.1);width:fit-content;border-radius:0 7px 7px 7px;}
.typing-dot{width:5px;height:5px;border-radius:50%;background:var(--gold-dim);animation:typingBounce 1.2s ease infinite;}
.typing-dot:nth-child(2){animation-delay:.2s;}
.typing-dot:nth-child(3){animation-delay:.4s;}

/* FAQ Accordion */
.faq-section{border-top:1px solid rgba(196,163,90,.08);padding:2rem 1.5rem;}
.faq-label{font-size:.58rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:.8rem;display:block;}
.faq-pills{display:flex;gap:.5rem;flex-wrap:wrap;}
.faq-pill{
  padding:.35rem .85rem;border:1px solid rgba(196,163,90,.18);
  font-size:.7rem;color:var(--gold-dim);cursor:pointer;
  transition:all .2s;background:transparent;font-family:'Plus Jakarta Sans',sans-serif;
  letter-spacing:.04em;
}
.faq-pill:hover{border-color:var(--gold);color:var(--gold);background:rgba(196,163,90,.05);}

.chat-input-area{border-top:1px solid rgba(196,163,90,.1);display:flex;}
.chat-input{
  flex:1;background:transparent;border:none;
  padding:.9rem 1.3rem;color:var(--cream);
  font-family:'Plus Jakarta Sans',sans-serif;font-size:.85rem;outline:none;
}
.chat-input::placeholder{color:rgba(156,146,130,.3);}
.chat-send{
  background:var(--teal);border:none;width:48px;cursor:pointer;
  color:var(--cream);font-size:.9rem;transition:background .2s;
  display:flex;align-items:center;justify-content:center;
}
.chat-send:hover{background:var(--teal-mid);}
.chat-send svg{width:16px;height:16px;stroke:var(--cream);fill:none;stroke-width:2;}

/* ── FORM CONTATTI ── */
.form-inner{max-width:700px;margin:0 auto;}
.form-intro{color:var(--cream-mid);font-size:.9rem;line-height:1.7;margin-top:.8rem 0 2.5rem;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2.5rem;}
.form-group{display:flex;flex-direction:column;gap:.4rem;}
.form-group.full{grid-column:1/-1;}
.form-label{font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-dim);font-weight:500;}
.form-input,.form-textarea{
  background:rgba(255,255,255,.03);border:1px solid rgba(196,163,90,.13);
  padding:.85rem 1rem;color:var(--cream);
  font-family:'Plus Jakarta Sans',sans-serif;font-size:.87rem;
  outline:none;transition:border-color .3s;width:100%;
}
.form-input:focus,.form-textarea:focus{border-color:rgba(196,163,90,.45);}
select.form-input option{background:#0f1510;color:#f4efe4;}
select.form-input{color:var(--cream);background-color:rgba(255,255,255,.03);}
.form-input::placeholder,.form-textarea::placeholder{color:rgba(156,146,130,.25);}
.form-textarea{resize:vertical;min-height:110px;}
.form-submit{grid-column:1/-1;margin-top:.5rem;}
.form-error{display:block;font-size:.68rem;color:#e07070;margin-top:.3rem;letter-spacing:.03em;}
.form-submit button{width:100%;padding:1.1rem;font-size:.75rem;}

/* ── POPUP ── */
.popup-overlay{
  position:fixed;inset:0;z-index:9000;
  background:rgba(8,12,11,.85);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;padding:1.5rem;
}
.popup-overlay.active{display:flex;}
.popup-box{
  background:#111a14;border:1px solid rgba(196,163,90,.25);
  padding:3rem;max-width:480px;width:100%;text-align:center;
  animation:popIn .4s ease both;position:relative;
}
.popup-icon{
  width:56px;height:56px;border-radius:50%;
  background:rgba(30,92,88,.3);border:1px solid rgba(30,92,88,.5);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 1.5rem;
}
.popup-icon svg{width:24px;height:24px;stroke:var(--teal-light);fill:none;stroke-width:1.8;}
.popup-title{font-family:'Playfair Display',serif;font-size:1.8rem;font-weight:300;color:var(--white);margin-bottom:.8rem;}
.popup-text{font-size:.85rem;color:var(--cream-mid);line-height:1.8;margin-bottom:.8rem;}
.popup-note{font-size:.75rem;color:var(--cream-dim);line-height:1.6;margin-bottom:2rem;}
.popup-close{display:block;width:100%;}
.popup-close-btn{
  position:absolute;top:1rem;right:1rem;
  background:none;border:none;color:var(--cream-dim);cursor:pointer;
  font-size:1.2rem;transition:color .2s;
}
.popup-close-btn:hover{color:var(--cream);}

/* ── MAPPA ── */
.map-section{background:var(--dark);border-top:1px solid rgba(196,163,90,.07);}
.map-inner{max-width:900px;margin:0 auto;text-align:center;}
.map-address{font-family:'Playfair Display',serif;font-size:1.6rem;color:var(--white);font-weight:300;margin:1.5rem 0 .4rem;}
.map-sub{color:var(--gold-dim);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;}
.dist-row{display:flex;justify-content:center;gap:1.2rem;margin:1.8rem 0;flex-wrap:wrap;}
.dist-pill{
  padding:.5rem 1.3rem;border:1px solid rgba(196,163,90,.18);
  font-size:.7rem;letter-spacing:.1em;color:var(--cream-dim);
}
.dist-pill strong{color:var(--gold);}
.map-frame{width:100%;height:280px;border:1px solid rgba(196,163,90,.12);margin-top:1.5rem;display:block;}

/* ── FOOTER ── */
footer{
  background:var(--black);
  border-top:1px solid rgba(196,163,90,.07);
  padding:3rem 2rem 2.5rem;
  display:flex;flex-direction:column;align-items:center;gap:1.2rem;text-align:center;
}
.footer-logo{display:block;text-align:center;}
.footer-logo img{height:44px;width:auto;filter:brightness(.9);border-radius:50%;display:block;margin:0 auto;}
.footer-contact{font-size:.75rem;color:var(--cream-dim);}
.footer-contact a{color:var(--gold-dim);text-decoration:none;transition:color .3s;}
.footer-contact a:hover{color:var(--gold);}
.footer-copy{font-size:.6rem;color:rgba(156,146,130,.3);letter-spacing:.15em;text-transform:uppercase;}

/* ── REVEAL ── */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s ease;}
.reveal.visible{opacity:1;transform:translateY(0);}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(28px);}to{opacity:1;transform:translateY(0);}}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:.5;transform:scale(.8);}}
@keyframes typingBounce{0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-5px);}}
@keyframes msgIn{from{opacity:0;transform:translateY(7px);}to{opacity:1;transform:translateY(0);}}
@keyframes popIn{from{opacity:0;transform:scale(.94) translateY(10px);}to{opacity:1;transform:scale(1) translateY(0);}}

/* ── RESPONSIVE ── */
@media(max-width:1100px){
  .docente-inner{grid-template-columns:320px 1fr;gap:3.5rem;}
}
@media(max-width:900px){
  .stats-bar::before,.stats-bar::after{display:none !important;}
  .stats-bar .stat-divider{display:none !important;visibility:hidden !important;width:0 !important;height:0 !important;position:static !important;background:none !important;}
  nav{padding:.9rem 1.5rem;}
  .nav-links{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(8,12,11,.98);flex-direction:column;align-items:center;justify-content:center;gap:2.5rem;z-index:9999;}
  .nav-links.open{display:flex;}
  .nav-links a{font-size:1rem;letter-spacing:.2em;color:var(--cream);}
  .nav-links a:hover{color:var(--gold);}
  .nav-toggle{display:block;z-index:10000;position:relative;}
  section{padding:4rem 1.5rem;}
  .stats-bar{grid-template-columns:repeat(2,1fr);padding:1.5rem;gap:0;}
  .stat-item:not(:last-child)::after{display:none;}
  .stat-item{border:none;padding:.8rem;}
  .stat-item:nth-child(1),.stat-item:nth-child(2){border-bottom:1px solid rgba(196,163,90,.15);}
  .stat-item:nth-child(1),.stat-item:nth-child(3){border-right:1px solid rgba(196,163,90,.15);}
  .corso-inner{grid-template-columns:1fr;gap:3rem;}
  .feature-grid{grid-template-columns:1fr;}
  .prog-items{grid-template-columns:1fr 1fr;}
  .docente-inner{grid-template-columns:1fr;}
  .docente-photo{max-width:320px;}
  .corsi-grid{grid-template-columns:1fr;}
  .corsi-head{flex-direction:column;align-items:flex-start;}
  .perche-grid{grid-template-columns:1fr 1fr;}
  .recens-grid{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  footer{flex-direction:column;align-items:center;padding:2rem 1.5rem;}
  .hero-badge{position:static;margin-top:2rem;display:inline-block;}
  .recens-intro{flex-direction:column;align-items:flex-start;}
}
@media(max-width:520px){
  .prog-items{grid-template-columns:1fr;}
  .perche-grid{grid-template-columns:1fr;}
  .hero-title{font-size:3.2rem;}
  .hero-cta{flex-direction:column;align-items:center;}
}
