/* 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: 13px; text-transform: uppercase; letter-spacing: 2px; 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: 13px; text-transform: uppercase; letter-spacing: 2px; 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; }
}

/* 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; }
}

/* ============================================================
   HAMBURGER MOBILE MENU + RESPONSIVE SAFETY
   ============================================================ */

/* Body safety: niente overflow orizzontale mai */
html, body { overflow-x: hidden; max-width: 100vw; }

/* SYSTEME EMBED — global (desktop + mobile) */
.systeme-embed { margin: 0 auto; max-width: 560px; width: 100%; }
.systeme-embed iframe { width: 100% !important; min-height: 360px !important; max-width: 100% !important; border: 0 !important; display: block !important; }
.systeme-embed iframe[scrolling="no"] { min-height: 380px !important; overflow: visible !important; }

img, video, iframe, table { max-width: 100%; }

/* Hamburger button — nascosto desktop, visibile mobile */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-warm);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  position: absolute;
  left: 50%;
  margin-left: -11px;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 50%; margin-top: -1px; }
.menu-toggle span:nth-child(3) { bottom: 14px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 50%; margin-top: -1px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { bottom: 50%; margin-bottom: -1px; transform: rotate(-45deg); }

/* Overlay menu mobile */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,20,16,0.97);
  backdrop-filter: blur(20px);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}
.mobile-overlay nav { width: 100%; max-width: 380px; }
.mobile-overlay nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
}
.mobile-overlay nav ul li {
  border-bottom: 1px solid var(--line);
}
.mobile-overlay nav ul li:last-child { border-bottom: none; }
.mobile-overlay nav ul li a {
  display: block;
  padding: 18px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ivory);
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}
.mobile-overlay nav ul li a:hover {
  color: var(--gold);
}
.mobile-overlay .cta-mini {
  margin-top: 32px;
  padding: 14px 28px;
  font-size: 13px;
}
.mobile-overlay-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Mobile breakpoint — attiva hamburger, nasconde nav inline */
@media (max-width: 900px) {
  .topbar nav { display: none !important; }
  .topbar > .container .cta-mini { display: none; }
  .menu-toggle { display: block; }
  .mobile-overlay { display: flex; }
  .topbar-inner { gap: 12px; }
  body.menu-open { overflow: hidden; }
}

/* Container responsive padding */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px !important; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px !important; }
}

/* ============================================================
   MOBILE OVERRIDE AGGRESSIVO — selettori esatti che match il CSS inline delle pagine
   ============================================================ */

@media (max-width: 768px) {

  /* HERO HOME */
  .hero { padding: 60px 0 50px !important; }
  .hero-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero h1 { font-size: 42px !important; line-height: 1.05 !important; letter-spacing: -0.8px !important; word-break: keep-all; }
  .hero .subtitle { font-size: 18px !important; line-height: 1.4 !important; margin-bottom: 28px !important; }
  .hero-cta { flex-wrap: wrap; gap: 12px !important; }

  /* NUMBERS HOME (4 colonne → 2 su mobile) */
  .numbers { padding: 40px 0 !important; }
  .numbers-grid { grid-template-columns: repeat(2,1fr) !important; gap: 24px !important; }
  .num-big { font-size: 40px !important; }
  .num-cell + .num-cell::before { display: none !important; }

  /* SECTIONS / TITLE */
  .section { padding: 56px 0 !important; }
  .section-header { margin-bottom: 36px !important; }
  .section-title { font-size: 30px !important; line-height: 1.15 !important; letter-spacing: -0.3px !important; }

  /* WHY GRID — 2 colonne → 1 */
  .why-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .why-text h2 { font-size: 28px !important; line-height: 1.15 !important; }
  .why-text p { font-size: 15px !important; }
  .pillar { padding-bottom: 24px !important; }
  .pillar-num { font-size: 26px !important; width: 40px !important; }
  .pillar-body h4 { font-size: 18px !important; }
  .pillar-body p { font-size: 14px !important; }

  /* AULA / LIVE / EBOOK GRID — 2 col → 1 */
  .aula-grid, .live-grid, .ebook-box { grid-template-columns: 1fr !important; gap: 32px !important; padding: 0 !important; }
  .aula-text h2, .live-text h2 { font-size: 28px !important; line-height: 1.15 !important; margin-bottom: 18px !important; }
  .aula-text p, .live-text p { font-size: 15px !important; }
  .ebook-section { padding: 56px 0 !important; }
  .ebook-content h2 { font-size: 28px !important; }
  .ebook-content p { font-size: 15px !important; }
  .ebook-cover-wrap { aspect-ratio: 3/4; max-width: 240px; margin: 0 auto; }

  /* PERCORSI — 3 col → 1 */
  .percorsi-grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-top: 32px !important; }
  .percorso-card { padding: 28px 22px !important; }
  .percorso-num { font-size: 48px !important; margin-bottom: 14px !important; }
  .percorso-title { font-size: 24px !important; }
  .percorso-desc { font-size: 14px !important; }

  /* SEDI — 5 col → 1 */
  .sedi-list { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 32px !important; }
  .sede-card { padding: 22px !important; }
  .sede-name { font-size: 22px !important; }

  /* TEAM GRID — 2 col → 1 + card layout vertical */
  .team-grid { grid-template-columns: 1fr !important; gap: 40px !important; margin-top: 40px !important; }
  .team-card { grid-template-columns: 1fr !important; gap: 20px !important; text-align: center; }
  .team-photo { aspect-ratio: 1/1 !important; max-width: 220px !important; margin: 0 auto !important; }
  .team-name { font-size: 26px !important; }
  .team-bio { font-size: 14px !important; text-align: left; }

  /* MANIFESTO */
  .manifesto { padding: 80px 0 !important; }
  .manifesto-mark { font-size: 56px !important; }
  .manifesto blockquote { font-size: 22px !important; line-height: 1.4 !important; }

  /* CTA FINAL */
  .cta-final { padding: 56px 0 !important; }
  .cta-final h2 { font-size: 32px !important; }
  .cta-final p { font-size: 16px !important; }

  /* MODULI TABLE → scroll container */
  .moduli-table-section { padding: 56px 0 !important; }
  .moduli-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .moduli-table { min-width: 700px !important; font-size: 12px !important; }

  /* PAGE HEADER (interne) */
  .page-header { padding: 50px 0 30px !important; }
  .page-title { font-size: 36px !important; line-height: 1.05 !important; }
  .page-subtitle { font-size: 16px !important; }

  /* PROSE */
  .section-narrow { padding: 40px 20px !important; }
  .prose h2 { font-size: 26px !important; margin: 28px 0 14px !important; }
  .prose p { font-size: 15px !important; }
  .prose blockquote { font-size: 17px !important; padding-left: 18px !important; }
  .prose .lead { font-size: 18px !important; padding-left: 16px !important; }

  /* MODULI / SEDI specifiche */
  .modulo-num-roman { font-size: 60px !important; }
  .modulo-title { font-size: 30px !important; line-height: 1.1 !important; }
  .modulo-desc-inner p { font-size: 16px !important; }
  .video-frame { margin-bottom: 32px !important; }
  .sedi-modulo .sedi-list { grid-template-columns: 1fr !important; }
  .moduli-list-sede .modulo-row { grid-template-columns: 36px 1fr !important; gap: 12px !important; padding: 14px 16px !important; }
  .moduli-list-sede .mod-date, .moduli-list-sede .mod-arrow { display: none !important; }
  .moduli-list-sede .mod-title { font-size: 15px !important; grid-column: 2; }

  /* SEDE HERO */
  .sede-hero { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* COSTELLATORI */
  .cost-hero { grid-template-columns: 1fr !important; gap: 24px !important; padding: 24px 0 40px !important; }
  .cost-photo-big { position: static !important; max-width: 280px !important; margin: 0 auto !important; }
  .cost-info-big h1 { font-size: 30px !important; }
  .contacts-icons { grid-template-columns: 1fr !important; }
  .cost-grid { grid-template-columns: 1fr !important; }

  /* BIO accademia (Mariella, Dario) */
  .bio-hero { grid-template-columns: 1fr !important; gap: 28px !important; padding: 30px 0 40px !important; }
  .bio-photo { position: static !important; max-width: 280px !important; margin: 0 auto !important; }
  .bio-info h1 { font-size: 36px !important; }
  .bio-info .lead { font-size: 18px !important; }
  .bio-info p { font-size: 15px !important; }
  .bio-info h2 { font-size: 26px !important; }

  /* CONTATTI */
  .contact-hero { grid-template-columns: 1fr !important; gap: 32px !important; padding: 24px 0 !important; }
  .form-block { padding: 28px 22px !important; }
  .docenti-section { padding: 56px 0 !important; }
  .docenti-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* MODULI INDEX */
  .moduli-index-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .modulo-card { padding: 28px 22px !important; }
  .modulo-card-num { font-size: 56px !important; }
  .modulo-card-title { font-size: 24px !important; }

  /* NEGOZIO/PRODOTTI */
  .product-grid, .negozio-grid { grid-template-columns: 1fr !important; }
  .price-card, .pricing-card { padding: 28px 22px !important; }
  .price-amount .num { font-size: 48px !important; }

  /* FOOTER */
  footer { padding: 40px 0 24px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column !important; gap: 12px !important; text-align: center !important; }
  .footer-bottom .legal a { margin: 0 8px !important; }

  /* COSTELLATORE INDEX SEZ DOCENTI 3 COL → 1 */
  body.accademia [style*="grid-template-columns:1fr 1fr 1fr"],
  body.accademia [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* SMALL PHONE 480px */
@media (max-width: 480px) {
  .hero h1 { font-size: 36px !important; }
  .section-title { font-size: 26px !important; }
  .page-title { font-size: 30px !important; }
  .modulo-num-roman { font-size: 48px !important; }
  .modulo-title { font-size: 24px !important; }
  .why-text h2, .aula-text h2, .live-text h2 { font-size: 24px !important; }
  .ebook-content h2 { font-size: 24px !important; }
  .manifesto blockquote { font-size: 18px !important; }
  .cta-final h2 { font-size: 26px !important; }
  .num-big { font-size: 32px !important; }
  .container, .container-narrow { padding: 0 14px !important; }
}

/* === Lining numerals (fix '11' che appare come 'ii' su Cormorant Garamond) === */
h1, h2, h3, h4, h5, h6,
em, strong,
.page-title, .page-eyebrow, .page-subtitle,
.section-title, .section-eyebrow,
.hero-title, .hero-subtitle,
.modulo-card-num, .modulo-card-eyebrow, .modulo-num-roman,
.modulo-eyebrow, .modulo-title,
.blog-card-title, .blog-card-date,
.sede-name, .sede-region, .sede-date-big,
.team-name, .team-role,
.cta-mini, .cta-pill,
.breadcrumb,
.eyebrow,
.price, .price-num, .price-amount,
.brand-logo, .topbar a, nav a, footer a {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

/* === Vignettatura bordi sulle foto hero/aula della home (fonde con sfondo) === */
.hero-photo,
.aula-photo {
  position: relative;
  overflow: hidden;
}
.hero-photo img,
.aula-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::after,
.aula-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px 25px var(--bg, #1A0F0F),
              inset 0 0 220px 60px rgba(26,15,15,0.55);
  border-radius: inherit;
}

/* === RESPONSIVE FIX GLOBALE 2026-05-07 === */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}
* { box-sizing: border-box; }

/* Container generale: padding sicuro su mobile */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 18px !important; }
  
  /* Tutti i grid con 2/3/4 colonne → 1 colonna su mobile */
  .pricing-grid,
  .price-grid,
  .moduli-grid,
  .modulo-grid,
  .sedi-grid,
  .sede-grid,
  .costellatori-grid,
  .costellatore-grid,
  .blog-grid,
  .negozio-grid,
  .prodotti-grid,
  .why-grid,
  .why-list,
  .faq-list,
  .footer-grid,
  .stats-grid,
  .stats-row,
  .features-grid,
  .vantaggi-grid,
  .cards-grid,
  .live-row,
  .testimonials-grid,
  .calendar-grid,
  .modules-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Pricing card: padding interno ridotto su mobile */
  .price-card,
  .pricing-card,
  .modulo-card,
  .sede-card,
  .blog-card,
  .product-card {
    padding: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Numeri prezzi enormi su mobile vanno scalati */
  .price-amount, .price-num {
    font-size: 56px !important;
    line-height: 1 !important;
  }
  
  /* Page header / hero / titoli grandi */
  .page-header { padding: 70px 0 40px !important; }
  .page-title  { font-size: 36px !important; line-height: 1.05 !important; }
  .page-subtitle { font-size: 16px !important; }
  .section-title, h2 { font-size: 30px !important; line-height: 1.15 !important; }
  
  /* Hero foto stack vertical */
  .hero-grid, .hero-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Tabelle responsive */
  table { display: block; overflow-x: auto; max-width: 100%; }
  
  /* Form e input full width */
  input, select, textarea, button { max-width: 100%; }
  
  /* Container con max-width inline > 100% schermo */
  .container[style*="max-width"] {
    max-width: 100% !important;
  }
  
  /* Footer responsive */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  
  /* Navigazione topbar mobile-friendly */
  .topbar-inner nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  /* Hero photo & sezione live */
  .hero-photo, .aula-photo, .live-photo {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 14px !important; }
  .page-title { font-size: 30px !important; }
  .section-title, h2 { font-size: 26px !important; }
  .price-amount, .price-num { font-size: 44px !important; }
  
  /* Topbar compatta */
  .topbar { padding: 12px 0 !important; }
  .brand-logo .text .main { font-size: 14px !important; }
  
  /* Bottoni full-width */
  .btn-primary, .btn-secondary, .price-cta, button[type="submit"] {
    width: 100% !important;
    text-align: center;
  }
}

/* === FIX MOBILE OVERFLOW v2 (2026-05-07) === */
@media (max-width: 768px) {
  /* Reset min-width per evitare contenuto che sfora */
  body *:not(svg):not(svg *) { min-width: 0 !important; }
  
  /* Tutti i grid inline → 1 colonna */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Pricing card e affini */
  .pricing-grid, .price-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
  .price-card, .pricing-card {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px 18px !important;
    box-sizing: border-box !important;
  }
  .price-features, .price-features li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100% !important;
  }
  
  /* Sezione VALORE in /percorsi/ — stili inline 2 colonne */
  section .container > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  section .container > div[style*="grid"] > div {
    padding: 24px 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Container con padding inline esagerato */
  div[style*="padding: 32px"] { padding: 22px 18px !important; }
  div[style*="padding: 48px"] { padding: 28px 20px !important; }
  div[style*="padding: 60px"] { padding: 32px 20px !important; }
  
  /* Ridurre font-size di titoli inline grandi */
  h1[style*="font-size: 56px"], h1[style*="font-size: 64px"], h1[style*="font-size: 72px"], h1[style*="font-size: 80px"] {
    font-size: 36px !important; line-height: 1.1 !important;
  }
  h2[style*="font-size: 40px"], h2[style*="font-size: 48px"], h2[style*="font-size: 56px"] {
    font-size: 28px !important;
  }
  
  /* Word wrap sicurezza globale */
  body, body p, body h1, body h2, body h3, body h4, body li, body td {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  /* No padding orizzontale fuori scala */
  section, .section { padding-left: 0 !important; padding-right: 0 !important; }
  
  /* Hero section padding sicuro */
  .hero, .page-header, .page-hero { padding-left: 16px !important; padding-right: 16px !important; }
  
  /* Tabelle moduli scrollabili */
  .moduli-table { min-width: 100% !important; font-size: 11px !important; }
  
  /* CTA hero non si sovrappone */
  .hero-cta { flex-wrap: wrap !important; gap: 12px !important; }
  .hero-cta a { width: 100% !important; box-sizing: border-box; text-align: center; }
}

/* ========================================================
   FORM CONTATTI CUSTOM — v2 design 2026-05-18c
   ======================================================== */
.cq-contact-form {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  padding: 56px 56px;
  background: rgba(20, 16, 12, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.18);
  border-radius: 12px;
  position: relative;
}
.cq-contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,165,116,0.35) 0%, rgba(212,165,116,0) 40%, rgba(212,165,116,0) 60%, rgba(212,165,116,0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cqf-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.cqf-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  /* form mobile responsive padding fix */
  .cq-contact-form { padding: 36px 22px; }
  .cqf-row-2 { grid-template-columns: 1fr !important; }
}
.cqf-field { display: flex; flex-direction: column; }
.cqf-field label {
  display: block !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 10px !important;
  font-weight: 500 !important;
}
.cqf-opt {
  color: rgba(237, 229, 211, 0.4) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 10px !important;
  margin-left: 8px !important;
}
.cqf-field input,
.cqf-field textarea {
  width: 100% !important;
  padding: 14px 18px !important;
  background: rgba(237, 229, 211, 0.04) !important;
  border: 1px solid rgba(212, 165, 116, 0.2) !important;
  border-radius: 6px !important;
  color: var(--ivory) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s !important;
  box-sizing: border-box !important;
  appearance: none !important;
}
.cqf-field input::placeholder,
.cqf-field textarea::placeholder { color: rgba(237, 229, 211, 0.35) !important; }
.cqf-field input:focus,
.cqf-field textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  background: rgba(237, 229, 211, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.08) !important;
}
.cqf-field textarea { resize: vertical !important; min-height: 130px !important; }
.cqf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.cqf-submit-wrap { text-align: center; margin-top: 12px; }
.cqf-submit {
  margin: 0 !important;
  cursor: pointer !important;
  min-width: 240px !important;
  padding: 18px 36px !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  background: var(--gold) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: 100px !important;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s !important;
}
.cqf-submit:hover { background: var(--gold-soft) !important; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(212, 165, 116, 0.25); }
.cqf-submit:disabled { opacity: 0.55 !important; cursor: progress !important; transform: none !important; box-shadow: none !important; }
.cqf-result {
  margin-top: 22px !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 13px !important;
  min-height: 1.5em !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
}
.cqf-result.ok { color: var(--gold) !important; }
.cqf-result.err { color: #d97a7a !important; }
.cqf-disclaimer {
  margin-top: 18px !important;
  text-align: center !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important;
  color: rgba(237, 229, 211, 0.5) !important;
  letter-spacing: 1px !important;
  text-transform: lowercase;
}

/* ========================================================
   TESTIMONIANZE VIDEO BOLOGNA — 2026-05-19
   ======================================================== */
.testimonianze-section { padding: 100px 0; background: var(--bg2); }
.testimonianze-section .section-eyebrow { text-align: center; margin-bottom: 16px; }
.testimonianze-section h2 { text-align: center; margin-bottom: 18px; }
.testimonianze-section .section-lead { text-align: center; max-width: 640px; margin: 0 auto 48px; color: var(--ivory-soft); font-size: 17px; line-height: 1.7; }
.testimonianze-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.testimonianza-card { background: var(--bg); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); aspect-ratio: 9/16; position: relative; }
.testimonianza-card video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
@media (max-width: 900px) {
  .testimonianze-grid { grid-template-columns: 1fr; max-width: 380px; }
  .testimonianze-section { padding: 70px 0; }
}
