/* Accademia Costellazioni Quantiche — design system v1 */
:root {
  --bg: #1B1410; --bg2: #2A1F18; --bg3: #1F1813;
  --ivory: #EDE5D3; --ivory-soft: #C9BDA6;
  --gold: #D4A574; --gold-soft: #E5C091; --gold-deep: #A87E4D;
  --amethyst: #9C7BC9; --terra: #C97849;
  --muted: rgba(237,229,211,0.65);
  --line: rgba(237,229,211,0.12);
  --line-warm: rgba(212,165,116,0.18);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { background: var(--bg); color: var(--ivory); font-family: 'Inter', sans-serif; font-weight: 400; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* TOP BAR */
.topbar { border-bottom: 1px solid var(--line); padding: 16px 0; position: sticky; top:0; z-index: 100; background: rgba(27,20,16,0.94); backdrop-filter: blur(14px); }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; }
.brand-logo { display:flex; align-items:center; gap: 14px; text-decoration:none; }
.brand-logo .symbol { width: 44px; height: 44px; background: url("https://costellazioniquantiche.com/wp-content/uploads/2023/06/cropped-simbolo-scuola.jpg") center/cover; border-radius: 50%; filter: brightness(1.1); box-shadow: 0 0 0 1px rgba(212,165,116,0.3); }
.brand-logo .text { display:flex; flex-direction:column; line-height: 1; }
.brand-logo .text .top { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.brand-logo .text .main { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 18px; color: var(--ivory); letter-spacing: 0.5px; }
.brand-logo .text .main em { font-style: italic; color: var(--gold); font-weight: 400; }
.footer-brand .brand-logo { margin-bottom: 24px; }
nav ul { display:flex; gap: 28px; list-style:none; }
nav a { color: var(--ivory); text-decoration:none; font-size: 13px; font-weight: 400; opacity:0.85; transition: all 0.2s; }
nav a:hover { opacity: 1; color: var(--gold); }
nav a.active { color: var(--gold); opacity: 1; }
.cta-mini { background: transparent; color: var(--gold); border: 1px solid var(--gold); padding: 9px 20px; border-radius: 100px; font-size: 12px; font-weight: 500; letter-spacing: 0.3px; text-decoration:none; transition: all 0.2s; }
.cta-mini:hover { background: var(--gold); color: var(--bg); }

/* PAGE HEADER (per pagine interne) */
.page-header { padding: 130px 0 80px; position: relative; overflow: hidden; background: radial-gradient(ellipse 50% 50% at 50% 30%, rgba(156,123,201,0.12) 0%, transparent 60%); }
.page-header::before { content:''; position:absolute; inset:0; background-image: radial-gradient(circle at 25% 35%, rgba(237,229,211,0.4) 1px, transparent 1px), radial-gradient(circle at 75% 60%, rgba(212,165,116,0.5) 1px, transparent 1px); background-size: 130px 130px; opacity: 0.5; pointer-events: none; }
.page-header-inner { position: relative; z-index: 2; text-align: center; }
.page-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 12px; }
.page-eyebrow::before, .page-eyebrow::after { content:''; width: 24px; height: 1px; background: var(--gold); }
.page-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 80px; line-height: 1.0; letter-spacing: -1.5px; margin-bottom: 24px; }
.page-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.page-subtitle { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-style: italic; font-size: 22px; color: var(--ivory-soft); max-width: 640px; margin: 0 auto; line-height: 1.5; }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory); }

/* SECTIONS */
.section { padding: 100px 0; }
.section-narrow { max-width: 820px; margin: 0 auto; padding: 100px 32px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 12px; }
.section-eyebrow::before, .section-eyebrow::after { content:''; width: 24px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 56px; line-height: 1.1; letter-spacing: -0.8px; max-width: 780px; margin: 0 auto; }
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }

/* PROSE */
.prose h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 44px; line-height: 1.15; letter-spacing: -0.4px; margin: 48px 0 24px; }
.prose h2 em { font-style: italic; color: var(--gold); }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin: 36px 0 16px; }
.prose p { color: var(--ivory-soft); font-size: 17px; line-height: 1.85; margin-bottom: 24px; }
.prose p strong { color: var(--ivory); font-weight: 500; }
.prose ul { padding-left: 24px; margin: 24px 0; }
.prose li { color: var(--ivory-soft); font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.prose blockquote { border-left: 2px solid var(--gold); padding: 12px 0 12px 28px; margin: 32px 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ivory); }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--bg); padding: 16px 32px; border:none; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration:none; letter-spacing: 0.5px; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ivory); padding: 16px 32px; border: 1px solid rgba(237,229,211,0.3); border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration:none; letter-spacing: 0.5px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--ivory); }
.btn-text { color: var(--gold); text-decoration:none; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.2s; }
.btn-text::after { content: ' →'; }

/* FOOTER */
footer { background: #14100C; border-top: 1px solid var(--line); padding: 90px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 56px; }
.footer-brand .brand-logo { margin-bottom: 24px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 28px; max-width: 340px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-warm); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ivory); text-decoration: none; font-size: 13px; font-family: 'IBM Plex Mono', monospace; transition: all 0.2s; }
.footer-social a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
footer h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 22px; font-weight: 500; }
footer ul { list-style: none; }
footer li { margin-bottom: 12px; }
footer a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
footer a:hover { color: var(--ivory); }
.footer-bottom { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.footer-bottom .legal a { margin-left: 28px; }

/* MOCKUP BANNER */
.mockup-banner { background: var(--amethyst); color: var(--bg); text-align: center; padding: 12px 24px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }

/* ============================================================
   MOBILE RESPONSIVE — breakpoints 1024 / 768 / 480
   ============================================================ */

/* TABLET — 1024px */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .page-title { font-size: 60px; }
  .section-title { font-size: 44px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  nav ul { gap: 20px; }
  nav a { font-size: 12px; }
}

/* MOBILE — 768px */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  
  /* TOP BAR */
  .topbar { padding: 12px 0; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .brand-logo .symbol { width: 36px; height: 36px; }
  .brand-logo .text .top { font-size: 8px; letter-spacing: 2px; }
  .brand-logo .text .main { font-size: 16px; }
  nav { width: 100%; order: 3; }
  nav ul { gap: 14px; flex-wrap: wrap; justify-content: center; padding-top: 8px; border-top: 1px solid var(--line); }
  nav a { font-size: 11px; letter-spacing: 0.3px; }
  .cta-mini { padding: 7px 14px; font-size: 11px; }
  
  /* PAGE HEADER */
  .page-header { padding: 70px 0 50px; }
  .page-title { font-size: 40px; line-height: 1.05; letter-spacing: -0.5px; }
  .page-subtitle { font-size: 17px; }
  .breadcrumb { font-size: 10px; margin-bottom: 16px; }
  
  /* SECTIONS */
  .section { padding: 60px 0; }
  .section-narrow { padding: 60px 20px; }
  .section-header { margin-bottom: 48px; }
  .section-title { font-size: 32px; line-height: 1.15; letter-spacing: -0.3px; }
  .section-eyebrow { font-size: 10px; letter-spacing: 2px; margin-bottom: 14px; }
  .section-eyebrow::before, .section-eyebrow::after { width: 16px; }
  
  /* PROSE */
  .prose h2 { font-size: 30px; margin: 32px 0 18px; }
  .prose h3 { font-size: 22px; margin: 28px 0 12px; }
  .prose p { font-size: 15px; line-height: 1.75; }
  .prose blockquote { font-size: 18px; padding-left: 18px; }
  
  /* BUTTONS */
  .btn-primary, .btn-outline { padding: 13px 22px; font-size: 13px; }
  
  /* FOOTER */
  footer { padding: 50px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; font-size: 11px; }
  .footer-bottom .legal a { margin: 0 12px; }
  
  /* HOME — HERO */
  .hero-inner, .hero { display: block !important; }
  .hero-text h1, .home-hero h1, .hero-title { font-size: 44px !important; line-height: 1.05 !important; }
  .hero-photo, .hero-photo-label { margin-top: 32px; }
  .hero-stats, .num-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  
  /* HOME — EBOOK */
  .ebook-section { padding: 60px 0; }
  .ebook-box { grid-template-columns: 1fr !important; gap: 32px !important; padding: 0 !important; }
  .ebook-cover-wrap { aspect-ratio: 3/4; max-width: 280px; margin: 0 auto; }
  .ebook-content h2 { font-size: 32px !important; }
  .ebook-content p { font-size: 15px; }
  
  /* HOME — PERCORSI */
  .percorsi-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .percorso-card { padding: 28px 22px !important; }
  .percorso-title { font-size: 24px !important; }
  
  /* HOME — SEDI LIST */
  .sedi-list { grid-template-columns: 1fr !important; gap: 14px !important; }
  .sede-card { padding: 22px !important; }
  .sede-name { font-size: 24px !important; }
  
  /* HOME — TEAM */
  .team-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .team-card { display: block !important; }
  .team-photo { aspect-ratio: 1/1; max-width: 240px; margin: 0 auto 20px; }
  .team-name { font-size: 28px !important; }
  
  /* HOME — MANIFESTO */
  .manifesto blockquote { font-size: 22px !important; line-height: 1.4 !important; }
  
  /* HOME — CTA FINAL */
  .cta-final h2 { font-size: 34px !important; }
  
  /* COSTELLATORI — INDEX GRID */
  .cost-grid, .costellatori-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .filter-bar, .region-filters { flex-wrap: wrap !important; gap: 8px !important; }
  
  /* COSTELLATORI — DETTAGLIO */
  .cost-hero { grid-template-columns: 1fr !important; gap: 32px !important; padding: 30px 0 50px !important; }
  .cost-photo-big { position: static !important; max-width: 320px; margin: 0 auto; }
  .cost-info-big h1 { font-size: 38px !important; }
  .contacts-icons { grid-template-columns: 1fr !important; }
  
  /* SEDI — DETTAGLIO */
  .sede-hero, .sede-detail { grid-template-columns: 1fr !important; gap: 32px !important; }
  
  /* CONTATTI */
  .contact-hero { grid-template-columns: 1fr !important; gap: 40px !important; }
  .docenti-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .form-row label { font-size: 12px; }
  
  /* PERCORSI — PAGE */
  .percorso-detail { grid-template-columns: 1fr !important; gap: 32px !important; }
  .pricing-card { padding: 28px 22px !important; }
  
  /* NEGOZIO */
  .product-grid, .negozio-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  
  /* FAQ */
  .faq-item summary { font-size: 16px !important; padding: 18px 0 !important; }
  
  /* AULA / LIVE PHOTO */
  .aula-grid, .live-row { grid-template-columns: 1fr !important; gap: 28px !important; }
  
  /* SYSTEME EMBED */
  .systeme-embed { margin: 0 -8px; }
  .systeme-embed iframe { width: 100% !important; }
}

/* SMALL PHONE — 480px */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .page-title { font-size: 34px; }
  .section-title { font-size: 28px; }
  .hero-text h1, .hero-title { font-size: 36px !important; }
  .ebook-content h2 { font-size: 28px !important; }
  .team-name { font-size: 24px !important; }
  .manifesto blockquote { font-size: 19px !important; }
  .cost-info-big h1 { font-size: 32px !important; }
  .hero-stats, .num-grid { grid-template-columns: 1fr !important; }
  nav ul { gap: 10px; }
  nav a { font-size: 10px; }
}
