/* ===========================
   CG EDUCATION – MAIN STYLES
   =========================== */

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

:root {
  --primary: #1E6FBF;
  --primary-dark: #155299;
  --primary-light: #1E6FBF;
  --cg-red: #1E6FBF;
  --red: #155299;
  --orange: #ea580c;
  --green: #16a34a;
  --pegaso-red: #c8102e;
  --mercatorum-red: #155299;
  --dark: #111827;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── TOPBAR ── */
.topbar {
  background: var(--dark);
  color: #9ca3af;
  font-size: 13px;
  padding: 6px 0;
  position: relative;
  z-index: 200;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.polo-name { color: #e5e7eb; font-weight: 500; }
.polo-name i { color: var(--cg-red); margin-right: 4px; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links a { color: #9ca3af; text-decoration: none; transition: color var(--transition); }
.topbar-links a:hover { color: var(--white); }
.topbar-links a i { margin-right: 4px; }

/* ── HEADER ── */
.header {
  background: #ffffff !important;
  border-bottom: 2px solid #f0f0f0;
  padding: 8px 0;
  position: sticky; top: 0; z-index: 150;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logos { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.logo-cg-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-cg-img { height: 50px; width: auto; object-fit: contain; max-width: 170px; }
.logo-divider { width: 1px; height: 44px; background: #d1d5db; flex-shrink: 0; }
.polo-label { line-height: 1.25;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-uni { height: 50px; width: auto; object-fit: contain; max-width: 160px; }
/* Logo Pegaso ha molto padding bianco interno → scalato più grande */
.logo-pegaso { height: 78px; max-width: 200px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-phone {
  display: flex; align-items: center; gap: 6px;
  color: var(--dark); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 8px 14px;
  border: 2px solid #e5e7eb; border-radius: 8px;
  transition: var(--transition);
}
.btn-phone:hover { border-color: var(--cg-red); color: var(--cg-red); }
.btn-cta {
  background: var(--cg-red); color: var(--white);
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--cg-red);
  position: sticky; top: 68px; z-index: 140;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 11px 16px;
  color: var(--dark); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  transition: color var(--transition); white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > a.nav-active { color: var(--cg-red); }
.nav-links > li > a.nav-active { border-bottom: 2px solid var(--cg-red); }
.nav-cta {
  background: var(--cg-red) !important; color: var(--white) !important;
  border-radius: 6px; margin-left: 8px;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 240px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition);
  border: 1px solid #e5e7eb;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; color: var(--dark); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background var(--transition);
}
.dropdown a:hover { background: #EAF3FB; color: var(--cg-red); }
.dropdown a i { width: 16px; color: var(--cg-red); }
.mobile-menu { display: none; flex-direction: column; padding: 12px 20px 16px; background: var(--white); border-top: 1px solid #e5e7eb; }
.mobile-menu a { padding: 10px 0; color: var(--dark); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid #f3f4f6; }
.mobile-menu .mobile-cta { color: var(--cg-red); font-weight: 700; border: none; margin-top: 8px; }

/* ── HERO ── */
.hero { position: relative; height: calc(100vh - 221px); min-height: 500px; max-height: 800px; overflow: hidden; }
.slides-container { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide-1 { background: url('slide1-v8.jpg') center 20% / cover no-repeat; }
.slide-2 { background: url('slide2-v9.jpg') center 20% / cover no-repeat; }
.slide-3 { background: url('slide3-v8.jpg') center 20% / cover no-repeat; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%); }
.slide-content {
  position: relative; z-index: 2;
  max-width: 600px; margin-left: 60px; color: var(--white);
  padding-top: 20px;
}
.slide-badge {
  display: inline-block; background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px); color: var(--white);
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.3); margin-bottom: 20px;
}
.slide-badge-orange { background: rgba(234,88,12,.3); border-color: rgba(249,115,22,.5); }
.slide-badge-green { background: rgba(22,163,74,.3); border-color: rgba(74,222,128,.5); }
.slide-content h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.slide-content h1 .hl { color: #93C5FD; }
.slide-content h1 .hl-orange { color: #fed7aa; }
.slide-content h1 .hl-green { color: #bbf7d0; }
.slide-content p { font-size: 16px; line-height: 1.7; opacity: .9; margin-bottom: 28px; max-width: 500px; }
.slide-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-primary {
  background: var(--white); color: var(--cg-red);
  padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: var(--transition); border: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-primary.btn-orange { color: var(--orange); }
.btn-primary.btn-green { color: var(--green); }
.btn-secondary {
  background: transparent; color: var(--white);
  padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid rgba(255,255,255,.6);
  transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.slide-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.stat-s { display: flex; flex-direction: column; }
.stat-s strong { font-size: 22px; font-weight: 800; }
.stat-s span { font-size: 12px; opacity: .8; }
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.3); }
.cfu-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.cfu-b {
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  color: var(--white); padding: 10px 24px; border-radius: 8px;
  font-size: 20px; font-weight: 800; border: 2px solid rgba(255,255,255,.4);
}
/* Slider controls */
.slide-prev, .slide-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  color: var(--white); border: 2px solid rgba(255,255,255,.3);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 16px; z-index: 10; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slide-prev { left: 20px; }
.slide-next { right: 420px; }
.slide-prev:hover, .slide-next:hover { background: rgba(255,255,255,.35); }
.slide-dots { position: absolute; bottom: 24px; left: 60px; display: flex; gap: 8px; z-index: 10; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--white); width: 24px; border-radius: 4px; }

/* ── HERO FORM ── */
.hero-form-wrapper {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-50%);
  width: 460px; z-index: 10;
}
.hero-form {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 26px 30px;
}
.hf-header {
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid #EAF3FB;
}
.hf-header h3 {
  font-size: 22px; font-weight: 800; color: var(--dark);
  margin-bottom: 5px; line-height: 1.25;
}
.hf-header p { font-size: 13px; color: var(--gray); margin: 0; }
.hf-header > i { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hero-form input, .hero-form select,
.contatti-form-box input, .contatti-form-box select,
.contatti-form-box textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: 14px; font-family: inherit;
  transition: border-color var(--transition); color: var(--dark);
  background: var(--white);
}
.hero-form input:focus, .hero-form select:focus,
.contatti-form-box input:focus, .contatti-form-box select:focus,
.contatti-form-box textarea:focus {
  outline: none; border-color: var(--cg-red);
  box-shadow: 0 0 0 3px rgba(210,29,90,.12);
}
.hero-form select, .contatti-form-box select { margin-bottom: 12px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.form-check input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--cg-red); }
.form-check label { font-size: 12px; color: var(--gray); line-height: 1.5; cursor: pointer; }
.btn-submit {
  width: 100%; background: var(--cg-red); color: var(--white);
  padding: 16px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: 0.3px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(210,29,90,.35); }

/* ── ATENEI STRIP ── */

.atenei-strip .container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }


.atenei-logos img { width: auto; object-fit: contain; }


/* ── SECTIONS COMMON ── */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: #EAF3FB; color: var(--cg-red);
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-tag-white { background: rgba(255,255,255,.2); color: var(--white); }
.section-header h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--dark); margin-bottom: 14px; line-height: 1.2; }
.section-header p { font-size: 17px; color: var(--gray); max-width: 560px; margin: 0 auto; }

/* ── SERVICES ── */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1.5px solid #e5e7eb;
  border-radius: var(--radius); padding: 28px 24px;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--cg-red); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-featured { background: #EAF3FB; border-color: var(--cg-red); }
.service-icon { width: 52px; height: 52px; background: #EAF3FB; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--cg-red); margin-bottom: 18px; }
.service-card-featured .service-icon { background: var(--cg-red); color: var(--white); }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.service-link { color: var(--cg-red); font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.service-link:hover { gap: 10px; }

/* ── CORSI ── */
.corsi { background: var(--light); }
.corsi-tabs { display: flex; gap: 4px; margin-bottom: 36px; background: #e5e7eb; padding: 4px; border-radius: 10px; width: fit-content; }
.tab-btn {
  padding: 10px 24px; border: none; background: transparent; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--gray);
  transition: var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--cg-red); box-shadow: 0 1px 6px rgba(0,0,0,.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.corsi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 36px; }
.corso-card {
  background: var(--white); border: 1.5px solid #e5e7eb; border-radius: var(--radius);
  padding: 20px; transition: var(--transition);
}
.corso-card:hover { border-color: var(--cg-red); box-shadow: var(--shadow); transform: translateY(-2px); }
.corso-classe {
  display: inline-block; background: #EAF3FB; color: var(--cg-red);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  margin-bottom: 10px; letter-spacing: .3px;
}
.corso-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.corso-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray); margin-bottom: 14px; flex-wrap: wrap; }
.corso-meta span { display: flex; align-items: center; gap: 4px; }
.corso-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
  padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  margin-bottom: 14px;
}
.corso-actions { display: flex; gap: 8px; }
.btn-scopri {
  flex: 1; background: var(--cg-red); color: var(--white);
  padding: 8px 14px; border-radius: 7px; text-decoration: none;
  font-size: 12px; font-weight: 600; text-align: center; transition: var(--transition);
}
.btn-scopri:hover { background: var(--primary-dark); }
.btn-info {
  background: #EAF3FB; color: var(--cg-red);
  padding: 8px 14px; border-radius: 7px; text-decoration: none;
  font-size: 12px; font-weight: 600; transition: var(--transition);
}
.btn-info:hover { background: #EAF3FB; }
.corsi-cta { text-align: center; }

/* ── CFU ── */
.cfu-section {
  background: linear-gradient(135deg, #155299 0%, #1E6FBF 100%);
  color: var(--white);
}
.cfu-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cfu-text h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.cfu-text p { font-size: 16px; opacity: .9; line-height: 1.7; margin-bottom: 28px; }
.cfu-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.cfu-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
}
.cfu-num { font-size: 24px; font-weight: 900; min-width: 80px; }
.cfu-desc { font-size: 14px; opacity: .85; }
.cfu-text .btn-primary { color: var(--primary-dark); }
.cfu-box {
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 20px;
  padding: 36px 32px; color: var(--white);
}
.cfu-box-icon { font-size: 48px; margin-bottom: 20px; opacity: .8; }
.cfu-box h4 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.cfu-box ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cfu-box li { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .9; }
.cfu-box li i { color: #86efac; font-size: 14px; flex-shrink: 0; }
.btn-cfu-box {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary-dark);
  padding: 12px 24px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: var(--transition);
}
.btn-cfu-box:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ── VALUTAZIONE ── */
.valutazione { background: var(--white); }
.valutazione-steps {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center; margin-bottom: 40px; flex-wrap: wrap;
}
.val-step-card {
  flex: 1; min-width: 180px; max-width: 240px;
  background: var(--light); border: 1.5px solid #e5e7eb;
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  position: relative;
}
.val-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cg-red); color: var(--white);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.val-icon { font-size: 32px; color: var(--cg-red); margin-bottom: 14px; display: block; }
.val-step-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.val-step-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.val-arrow { display: flex; align-items: center; padding: 0 8px; color: var(--cg-red); font-size: 18px; padding-top: 50px; }
.val-cta { text-align: center; }

/* ── AGEVOLAZIONI ── */
.agevolazioni { background: var(--light); }
.agev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.agev-card {
  background: var(--white); border: 1.5px solid #e5e7eb;
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  transition: var(--transition);
}
.agev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cg-red); }
.agev-featured { border-color: var(--cg-red); background: #EAF3FB; }
.agev-icon { font-size: 36px; color: var(--cg-red); margin-bottom: 16px; }
.agev-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.agev-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── STATS ── */
.stats-section { background: var(--cg-red); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item {}
.stat-num { font-size: clamp(36px, 4vw, 56px); font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.8); font-weight: 500; }

/* ── PERCHÉ ── */
.perche { background: var(--white); }
.perche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.perche-card {
  background: var(--light); border: 1.5px solid #e5e7eb;
  border-radius: var(--radius); padding: 32px 28px;
  transition: var(--transition);
}
.perche-card:hover { border-color: var(--cg-red); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.perche-logo { margin-bottom: 20px; height: 52px; display: flex; align-items: center; }
.perche-logo img { max-height: 52px; max-width: 180px; object-fit: contain; }
.perche-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.perche-card p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 18px; }
.perche-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.perche-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.perche-card li i { color: var(--cg-red); font-size: 14px; }

/* ── SEDI ── */
.sedi { background: var(--light); }
.sedi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; grid-auto-flow: row; }
.sede-card {
  background: var(--white); border: 1.5px solid #e5e7eb;
  border-radius: var(--radius); padding: 36px 22px 28px 22px; text-align: center;
  transition: var(--transition); position: relative;
}
.sede-card:hover { border-color: var(--cg-red); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sede-featured { border-color: var(--cg-red); }
.sede-region {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: var(--cg-red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 3px 12px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.sede-icon { font-size: 32px; color: var(--cg-red); margin: 16px 0 12px; }
.sede-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.sede-card p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.sede-map-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EAF3FB; color: var(--cg-red); padding: 8px 16px;
  border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.sede-map-btn:hover { background: var(--cg-red); color: var(--white); }

/* ── CONTATTI ── */
.contatti { background: linear-gradient(135deg, #111827 0%, #155299 100%); color: var(--white); }
.contatti-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contatti-info h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 14px; }
.contatti-info p { font-size: 16px; opacity: .85; margin-bottom: 32px; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; opacity: .7; margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--white); text-decoration: none; font-size: 16px; font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: var(--white);
  padding: 13px 26px; border-radius: 10px; text-decoration: none;
  font-size: 15px; font-weight: 700; transition: var(--transition);
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn-wa i { font-size: 20px; }
.contatti-form-box {
  background: var(--white); border-radius: 20px;
  padding: 36px 32px; color: var(--dark);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.contatti-form-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 24px; color: var(--dark); }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.fg textarea { resize: vertical; }
.btn-submit-dark {
  width: 100%; background: var(--cg-red); color: var(--white);
  padding: 13px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit-dark:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
.footer { background: #0f172a; color: #94a3b8; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-cg-logo { height: 60px; width: auto; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-uni-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-uni-logos img { height: 28px; width: auto; object-fit: contain; opacity: .7; filter: brightness(10); }
/* Logo Pegaso ha molto padding bianco interno nel file usato in footer → altezza maggiore per pareggiare il marchio visibile */
.footer-uni-logos img[alt="Pegaso"] { height: 70px; }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-col li a:hover { color: var(--white); }
.footer-contacts li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.footer-contacts i { color: var(--cg-red); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 0;
  display: flex; align-items: center;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ── FLOATING ELEMENTS ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--white); text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition); animation: pulse-wa 2s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); pointer-events: auto; }
.wa-tooltip {
  position: absolute; right: 68px; background: #25d366; color: var(--white);
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  white-space: nowrap; opacity: 0; transform: translateX(8px);
  transition: var(--transition); pointer-events: none;
}
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}
.back-to-top {
  position: fixed; bottom: 92px; right: 28px; z-index: 999;
  width: 44px; height: 44px; background: var(--cg-red); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--white); border: none; cursor: pointer; font-size: 16px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #16a34a; color: var(--white);
  padding: 14px 24px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; z-index: 9999;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { font-size: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-form-wrapper { right: 20px; width: 400px; }
  .hero-form { padding: 28px 30px; }
  .slide-next { right: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .agev-grid { grid-template-columns: repeat(2, 1fr); }
  .sedi-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cfu-inner { grid-template-columns: 1fr; }
  .contatti-inner { grid-template-columns: 1fr; }
  .valutazione-steps { gap: 8px; }
  .val-arrow { display: none; }
  .val-step-card { min-width: 140px; }
}
@media (max-width: 768px) {
  .topbar .polo-name { display: none; }
  .topbar-links { gap: 12px; }
  .logo-uni { height: 36px; max-width: 110px; }
  .logo-pegaso { height: 56px; max-width: 150px; }
  .logo-divider { height: 36px; }
  .polo-label { line-height: 1.25; font-size: 11px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero { height: auto; min-height: 100vh; max-height: none; }
  .slide { position: relative; min-height: 420px; }
  .slides-container { position: relative; }
  .slide:not(.active) { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero-form-wrapper { position: relative; right: auto; top: auto; transform: none; width: 100%; padding: 0 16px 24px; }
  .hero-form { padding: 28px 24px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
  .hf-header h3 { font-size: 19px; }
  .slide-content { margin-left: 20px; margin-right: 20px; padding: 80px 0 40px; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }
  .slide-dots { bottom: 12px; left: 50%; transform: translateX(-50%); }
  .corsi-tabs { flex-direction: column; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .agev-grid { grid-template-columns: 1fr; }
  .sedi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-col { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
  .footer-col.footer-about { border-top: none; padding-top: 0; }
  section { padding: 56px 0; }
  .contatti-form-box { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .header-actions { display: none; }
  .slide-content h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .logo-cg-img { height: 40px; }
  .logo-uni { height: 30px; max-width: 90px; }
  .logo-divider { height: 30px; }
  .polo-label { line-height: 1.25; display: none; }
  .logos { gap: 12px; }
}
/* ── Header: loghi ateneo senza CG Education ── */
.header .logos {
  gap: 20px;
  align-items: center;
}
.header .logo-pegaso {
  height: 52px !important;
  width: auto;
}
.header .logo-uni {
  height: 42px !important;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Icone SVG nel dropdown menu */
.dropdown a svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.dropdown a:hover svg {
  transform: scale(1.15);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 4px;
}


/* ── TRUSTPILOT WIDGET ── */
.tp-widget {
  display: block;
  margin-top: 24px;
  text-decoration: none;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  transition: background .2s, border-color .2s;
  max-width: 340px;
}
.tp-widget {
  cursor: default;
}
.tp-widget-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tp-logo {
  width: 36px; height: 36px;
}
.tp-score {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.tp-right {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tp-stars {
  display: flex;
  gap: 3px;
}
.tp-star {
  width: 18px; height: 18px;
  display: inline-block;
  border-radius: 2px;
  position: relative;
}
.tp-star-full {
  background: #00b67a;
}
.tp-star-full::after {
  content: '★';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
}
.tp-star-half {
  background: linear-gradient(to right, #00b67a 50%, #dcdce6 50%);
}
.tp-star-half::after {
  content: '★';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
}
.tp-label {
  font-size: 13px;
  color: rgba(255,255,255,0.95);
}
.tp-label strong {
  color: #fff;
}
.tp-count {
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
}

/* ── PERCHÉ: badge polo di orientamento ── */
.perche-polo-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-left: 4px solid #1E6FBF;
  border-radius: 12px;
  padding: 14px 22px;
  margin-top: 20px;
  max-width: 560px;
}
.perche-polo-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.perche-polo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.perche-polo-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1E6FBF;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.perche-polo-sub {
  font-size: 13px;
  color: #4b5563;
  margin-top: 2px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .perche-polo-badge { flex-direction: column; text-align: center; padding: 12px 16px; }
  .perche-polo-text { text-align: center; }
}

/* ── ATENEI STRIP (sotto carosello) ── */
.atenei-strip {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 3px solid #f0f0f0;
  padding: 10px 24px;
}
.atenei-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.strip-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1E6FBF;
  white-space: nowrap;
  letter-spacing: .2px;
}
.atenei-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.strip-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  max-width: 210px;
}
.strip-logo-merc {
  height: 84px;
  max-width: 260px;
}
.ateneo-sep {
  width: 1px;
  height: 64px;
  background: #d1d5db;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .atenei-strip-inner { gap: 14px; }
  .strip-logo { height: 44px; max-width: 120px; }
  .strip-logo-merc { height: 58px; max-width: 170px; }
  .strip-label { font-size: 11px; }
  .atenei-logos { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .ateneo-sep { height: 44px; }
}
@media (max-width: 480px) {
  .atenei-strip-inner { flex-direction: column; gap: 10px; }
  .strip-label { text-align: center; }
}

/* ── SEDE ONLINE ── */
.sede-online {
  border: 2px solid #1E6FBF;
  background: linear-gradient(135deg, #EAF3FB 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.sede-online::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1E6FBF, #155299);
}
.sede-region-online {
  background: #1E6FBF !important;
  color: #ffffff !important;
}
.sede-icon-online i {
  color: #1E6FBF;
}
.sede-online-btn {
  background: #1E6FBF !important;
  color: #ffffff !important;
  border: none !important;
}
.sede-online-btn:hover {
  background: #155299 !important;
  color: #ffffff !important;
}


/* ===================== POPUP PROMO PC IN OMAGGIO ===================== */
.promo-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.promo-popup-overlay.active { display: flex; }

.promo-popup-box {
  background: linear-gradient(160deg, #5BB8F5 0%, #2E8FD4 40%, #1E6FBF 100%);
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.8) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Decorazioni angoli */
.promo-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.promo-deco-1 { width: 120px; height: 120px; top: -40px; left: -40px; }
.promo-deco-2 { width: 80px; height: 80px; bottom: 60px; right: -20px; background: rgba(11,45,107,0.2); }

/* Tasto chiudi */
.promo-popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}
.promo-popup-close:hover { background: rgba(255,255,255,0.5); }

/* Logo */
.promo-popup-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.promo-logo-cg {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #fff;
  letter-spacing: 4px;
  line-height: 1;
}
.promo-logo-edu {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 3px;
}

/* Titolo principale */
.promo-popup-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.promo-title-dark {
  font-weight: 900;
  color: #0B2D6B;
}
.promo-title-light {
  font-weight: 900;
  color: #fff;
}

/* Sottotitolo */
.promo-popup-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

/* CTA Button */
.promo-popup-cta {
  display: inline-block;
  background: #fff;
  color: #1E6FBF;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 10px 28px;
  border-radius: 50px;
  border: 2px solid #fff;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.promo-popup-cta:hover {
  background: transparent;
  color: #fff;
}

/* Telefono */
.promo-popup-phone {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 18px;
  position: relative;
  z-index: 1;
}
.promo-popup-phone i { margin-right: 6px; }

/* Sezione PC */
.promo-popup-pc-section {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px 16px;
  position: relative;
  z-index: 1;
}

/* Badge "IN OMAGGIO" */
.promo-pc-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}
.promo-pc-label {
  background: #0B2D6B;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.promo-pc-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.promo-pc-sub {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  margin-top: 3px;
}
.promo-pc-icon {
  font-size: 22px;
  margin-top: 6px;
  color: #fff;
}

/* Laptop CSS */
.promo-pc-image { flex: 1; display: flex; justify-content: center; }
.promo-laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}
.promo-laptop-screen {
  width: 120px;
  height: 78px;
  background: linear-gradient(135deg, #daeeff, #b8dbf7);
  border-radius: 6px 6px 0 0;
  border: 3px solid #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.promo-laptop-text-1 {
  font-size: 11px;
  color: #1E6FBF;
  font-style: italic;
  margin: 0;
}
.promo-laptop-text-2 {
  font-size: 20px;
  font-weight: 900;
  color: #0B2D6B;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #1E6FBF;
}
.promo-laptop-base {
  width: 140px;
  height: 8px;
  background: #555;
  border-radius: 0 0 4px 4px;
}

/* Mobile */
@media (max-width: 480px) {
  .promo-popup-box { padding: 28px 18px 20px; }
  .promo-popup-title { font-size: 22px; }
}
/* ====================================================================== */

/* ── Slide: soggetto visibile anche su mobile (crop spostato a sinistra) ── */
@media (max-width: 768px) {
  .slide-1 { background-position: 55% 20%; }
  .slide-2 { background-position: 55% 20%; }
  .slide-3 { background-position: 55% 20%; }
}
