/* ============================================================
   vpv.css — Via Per Via Education · Design system condiviso
   Includi in tutte le pagine del sito e nei contributi delle scuole
   ============================================================ */

/* ── VARIABILI ── */
:root {
  --blue-dark:   #0A2A40;
  --blue-main:   #0B6E9E;
  --blue-mid:    #4A9EC8;
  --blue-light:  #7ABCE0;
  --blue-pale:   #CCE8F8;
  --amber:       #D4801A;
  --amber-light: #FFF5E0;
  --cream:       #F0F7FF;
  --gray-dark:   #222222;
  --gray-mid:    #666666;
  --gray-light:  #E0DBD0;
  --white:       #FFFFFF;
  --coral:       #C75A3A;
  --header-h:    71px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  background: rgba(240,247,255,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0.65rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 50px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(10,42,64,0.22)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .logo-name,
.logo-name { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue-dark); text-transform: uppercase; }
.logo-text .logo-tagline,
.logo-tagline { font-size: 0.6rem; color: var(--blue-mid); letter-spacing: 0.06em; font-weight: 500; }
nav { display: flex; gap: 1.8rem; align-items: center; }
nav a { font-size: 0.82rem; font-weight: 500; color: var(--gray-mid); text-decoration: none; cursor: pointer; transition: color 0.2s; }
nav a:hover { color: var(--blue-main); }
nav a.nav-active { color: var(--blue-main); }
.nav-cta { background: var(--blue-main) !important; color: white !important; padding: 0.45rem 1.1rem !important; border-radius: 100px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; z-index: 700; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 650;
  background: rgba(240,247,255,0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 2rem;
}
.mobile-menu.open { display: flex; animation: fadeIn 0.25s ease; }
.mobile-menu a { font-family: 'DM Sans', sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--blue-dark); text-decoration: none; cursor: pointer; padding: 1rem 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(11,110,158,0.1); transition: color 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue-main); }
.mobile-menu-cta { margin-top: 1.5rem !important; background: var(--blue-main) !important; color: white !important; border-radius: 10px !important; border-bottom: none !important; padding: 1rem 2rem !important; width: auto !important; }
.mobile-menu-cta:hover { background: var(--blue-dark) !important; color: white !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── UTILITIES ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

.sec-label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-main); margin-bottom: 0.8rem;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--blue-dark); line-height: 1.2; margin-bottom: 1.2rem;
}
.sec-intro { font-size: 1rem; color: var(--gray-mid); max-width: 660px; line-height: 1.85; }

.btn-primary {
  background: var(--blue-main); color: white; border: none;
  padding: 0.95rem 1.6rem; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; transition: all 0.25s;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,110,158,0.28); }

/* ── FOOTER PRINCIPALE ── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.site-footer .footer-cta {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .footer-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: white;
  margin-bottom: 0.55rem; font-weight: 500;
}
.site-footer .footer-cta p {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  line-height: 1.7; max-width: 480px; margin: 0 auto 1.4rem;
}
.site-footer .footer-cta p a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.site-footer .footer-cta p a:hover { color: white; }
.footer-cta-btn {
  display: inline-block;
  background: var(--coral); color: white;
  border: none; border-radius: 10px;
  padding: 0.65rem 1.6rem; font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  cursor: pointer; letter-spacing: 0.02em;
  text-decoration: none; transition: opacity 0.2s;
}
.footer-cta-btn:hover { opacity: 0.88; }
.env-o { display: none; }
.footer-cta-btn:hover .env-o { display: inline; }
.footer-cta-btn:hover .env-c { display: none; }
.site-footer .footer-bottom { padding: 1.6rem 2rem; }
.site-footer .footer-name { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem; color: white; letter-spacing: 0.1em; display: inline; }
.site-footer .footer-sub2 { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-left: 4px; display: inline; }
.site-footer .footer-links { display: flex; gap: 1.8rem; justify-content: center; margin: 1rem 0 0.8rem; flex-wrap: wrap; }
.site-footer .footer-links a { font-size: 0.76rem; color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.site-footer .footer-links a:hover { color: white; }
.site-footer .footer-links a.footer-active { color: white; font-weight: 600; }
.site-footer .footer-copy { font-size: 0.68rem; margin-top: 0.6rem; color: rgba(255,255,255,0.28); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 0.65rem 1.2rem; }
  nav { display: none; }
  .hamburger { display: flex; }
  .via-hero { padding: 3rem 1.25rem 2.5rem; }
  .school-section { padding: 2.5rem 1.25rem; }
  .container { padding: 0 1.25rem; }
}

/* ════════════════════════════════════════════
   PAGINE SCUOLA
   ════════════════════════════════════════════ */

.school-page { padding-top: var(--header-h); }

/* hero della via */
.via-hero {
  background: var(--blue-dark);
  color: white;
  padding: 4rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
.via-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,110,158,0.45) 0%, transparent 65%);
  pointer-events: none;
}
.via-hero .container { position: relative; }

.via-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem;
}
.via-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.via-breadcrumb a:hover { color: white; }
.via-breadcrumb span { color: rgba(255,255,255,0.35); }

.via-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 0.25rem 0.85rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
}
.via-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.via-subtitle { font-size: 1rem; color: rgba(255,255,255,0.72); max-width: 560px; line-height: 1.7; margin-bottom: 1.8rem; }
.via-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.via-meta-pill {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px; padding: 0.25rem 0.85rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.8);
}

/* sezioni contenuto */
.school-section { padding: 3.5rem 2rem; }
.school-section:nth-child(even) { background: white; }

.school-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: var(--blue-dark); margin-bottom: 0.6rem;
}
.school-section p { color: var(--gray-mid); line-height: 1.85; margin-bottom: 1rem; }
.school-section p:last-child { margin-bottom: 0; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
  background: var(--blue-pale); position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-mid); font-size: 0.75rem; font-weight: 600;
  text-align: center; padding: 1rem;
}

/* citazione studenti */
.quote-block {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.quote-block p { color: var(--gray-dark); font-style: italic; line-height: 1.75; margin-bottom: 0.4rem; max-width: none; }
.quote-block cite { font-size: 0.75rem; font-weight: 600; color: var(--amber); font-style: normal; }

/* schede informative */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.info-card { background: var(--cream); border: 1px solid var(--blue-pale); border-radius: 12px; padding: 1.2rem; }
.info-card .ic-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 0.3rem; }
.info-card .ic-value { font-size: 0.9rem; font-weight: 600; color: var(--blue-dark); }

/* footer scuola */
.school-footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.6);
  padding: 2rem; text-align: center; font-size: 0.78rem;
}
.school-footer a { color: var(--blue-light); text-decoration: none; }
.school-footer a:hover { color: white; }
