﻿/* ============================================================
   MONTESSORI BRESCIA — ESEMPIO 2
   "Glass Forest" — Dark glassmorphism · Multi-page · Mobile-first
   ============================================================ */

@font-face {
  font-family: 'CorsivoMontessori';
  src: url('../fonts/CorsivoMontessori.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ---------- Google Fonts (inline import) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --dark:         #F5F0E8;
  --dark2:        #EDE7DB;
  --forest:       #E3DAC9;
  --green:        #3A6868;
  --green-l:      #5A9090;
  --green-d:      #224545;
  --gold:         #B04E30;
  --gold-l:       #C86840;
  --gold-pale:    rgba(176,78,48,0.11);
  --rose:         #963028;
  --blue:         #2A5088;
  --cream:        #FAF8F2;
  --text:         #2A2018;
  --text-muted:   rgba(42,32,24,0.55);
  --glass:        rgba(255,255,255,0.62);
  --glass-b:      rgba(0,0,0,0.09);
  --glass-h:      rgba(255,255,255,0.82);
  --nav-h:        68px;
  --bot-h:        70px;
  --radius:       20px;
  --ease:         cubic-bezier(.4,0,.2,1);
  --bounce:       cubic-bezier(.34,1.56,.64,1);
  --font-h:       'Playfair Display', Georgia, serif;
  --font-b:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-m:       'CorsivoMontessori', 'Playfair Display', serif;
  --shadow:       0 24px 60px rgba(0,0,0,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; }
button { font-family: var(--font-b); }

/* ---------- Page Transition ---------- */
/* Solo opacity: nessun transform su body o page-wrap evita qualsiasi problema
   con position:fixed in Chrome (compositing layers + backdrop-filter) */
body { animation: pgEnter .45s var(--ease) both; }
@keyframes pgEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.page-exit { animation: pgExit .3s var(--ease) both; }
@keyframes pgExit {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ============================================================
   BACKGROUND ORBS
   ============================================================ */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle at 40% 40%, #8ab8b8 0%, transparent 65%);
  top: -250px; left: -200px;
  animation: orb1 28s ease-in-out infinite;
  opacity: .38;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle at 60% 60%, #c8b89a 0%, transparent 65%);
  top: 35%; right: -180px;
  animation: orb2 35s ease-in-out infinite;
  opacity: .28;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle at 50% 50%, #c8806a 0%, transparent 65%);
  bottom: -100px; left: 30%;
  animation: orb3 22s ease-in-out infinite;
  opacity: .22;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 50% 50%, rgba(176,78,48,.25) 0%, transparent 65%);
  top: 60%; left: 10%;
  animation: orb4 18s ease-in-out infinite;
  opacity: .20;
}
@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(80px,-70px) scale(1.05); }
  66%     { transform: translate(-50px,90px) scale(.95); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0); }
  40%     { transform: translate(-70px,50px); }
  70%     { transform: translate(90px,-90px); }
}
@keyframes orb3 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-70px,-60px); }
}
@keyframes orb4 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(60px,-80px); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: var(--bot-h);
}
@media (min-width: 768px) {
  .page-wrap { padding-bottom: 0; }
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR (desktop top)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(245,240,232,0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: none;
  height: 58px;
  padding: 0 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .5px;
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform .3s var(--bounce), box-shadow .3s var(--ease) !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(74,122,72,.35) !important;
}
.nav-cta.active::after { display: none !important; }

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: color .25s var(--ease), transform .25s var(--bounce);
  flex-shrink: 0;
}
.nav-icon-btn::after { display: none !important; }
.nav-icon-btn i {
  font-size: xx-large;
  color: var(--green) !important;
}
.nav-icon-btn i:hover {
  transform: translateX(-2px) scale(1.12);
}

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bot-h);
  z-index: 1000;
  background: rgba(245,240,232,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0,0,0,0.09);
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bot-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .60rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .3s var(--ease), transform .3s var(--bounce);
  cursor: pointer;
}
.bot-item i { font-size: 1.15rem; }
.bot-item:hover,
.bot-item.active { color: var(--green); transform: translateY(-3px); }
.bot-item.active i {
  filter: drop-shadow(0 0 8px rgba(74,122,72,0.5));
}

/* ============================================================
   HAMBURGER BUTTON (mobile only)
   ============================================================ */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
}
@media (min-width: 768px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .35s var(--ease), width .35s var(--ease);
  transform-origin: center;
}
/* Animated → X */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
  pointer-events: none;
  overflow: hidden;              /* taglia il panel translateX fuori viewport */
  visibility: hidden;            /* completamente invisibile quando chiuso */
  transition: visibility 0s .4s; /* aspetta la fine dell'animazione di chiusura */
}
.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s 0s;  /* visibile subito all'apertura */
}
/* Backdrop */
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42,32,24,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.mobile-menu.open::before { opacity: 1; }
/* Drawer panel */
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(0,0,0,0.08);
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
  padding: calc(var(--nav-h) + 16px) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 12px;
  border-radius: 14px;
  letter-spacing: .3px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--bounce);
}
.mobile-menu-panel a i {
  width: 22px;
  text-align: center;
  color: var(--green);
  font-size: .95rem;
}
.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
  background: rgba(58,104,104,.10);
  color: var(--green);
  transform: translateX(4px);
}
.mobile-menu-panel .mm-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 8px 0;
}
.mobile-menu-panel .mm-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #fff !important;
  justify-content: center;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(176,78,48,.22);
}
.mobile-menu-panel .mm-cta:hover {
  transform: translateY(-2px) translateX(0) !important;
  box-shadow: 0 8px 28px rgba(176,78,48,.38) !important;
}
.mobile-menu-panel .mm-cta i { color: #fff !important; }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }

.tag-pill {
  display: inline-block;
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(154,110,30,.22);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.tag-pill.green {
  color: var(--green-d);
  background: rgba(74,122,72,0.12);
  border-color: rgba(74,122,72,0.25);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 48px;
}
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .3s var(--bounce);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #fff;
  box-shadow: 0 4px 20px rgba(154,110,30,.25);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(154,110,30,.45);
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74,122,72,.22);
}
.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74,122,72,.38);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--glass-h);
  transform: translateY(-3px);
}
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform .4s var(--bounce), box-shadow .4s var(--ease), border-color .3s;
}
.glass:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 44px rgba(0,0,0,.13);
  border-color: rgba(154,110,30,.20);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.on { opacity: 1; transform: translateY(0); }

.reveal-l {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-l.on { opacity: 1; transform: translateX(0); }

.reveal-r {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-r.on { opacity: 1; transform: translateX(0); }

.stagger > *:nth-child(1) { transition-delay: .00s; }
.stagger > *:nth-child(2) { transition-delay: .10s; }
.stagger > *:nth-child(3) { transition-delay: .20s; }
.stagger > *:nth-child(4) { transition-delay: .30s; }
.stagger > *:nth-child(5) { transition-delay: .40s; }
.stagger > *:nth-child(6) { transition-delay: .50s; }
.stagger > *:nth-child(7) { transition-delay: .60s; }

/* ============================================================
   HERO (shared)
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
  transform: scale(1.06);
  transition: transform 14s linear;
}
.hero:hover .hero-bg-img { transform: scale(1); }
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245,240,232,.35) 0%, rgba(245,240,232,.0) 40%, rgba(245,240,232,.90) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  color: var(--text);
  margin-bottom: 22px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-quote {
  font-family: var(--font-m);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(154,110,30,.75);
  margin-bottom: 42px;
  letter-spacing: .3px;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 42px;
}
.hero-logo {
  display: block;
  text-align: center;
  margin-bottom: 30px;
  animation: fadeScl 1s var(--bounce) .2s both;
}
.hero-logo img {
  display: block;
  margin: 0 auto;
  width: clamp(300px, 42vw, 480px);
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.13));
}
.hero-logo::after {
  content: '';
  display: block;
  margin: 28px auto 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(176,78,48,.45), transparent);
}

/* Tag-pill centrato nell'hero */
.hero .tag-pill {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}
@keyframes fadeScl {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hero h1 { animation: fadeUp 1s var(--ease) .5s both; }
.hero-sub,
.hero-quote { animation: fadeUp 1s var(--ease) .7s both; }
.hero .btn-group { animation: fadeUp 1s var(--ease) .9s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page hero (inner pages) */
.page-hero {
  min-height: 50vh;
  padding: 100px 0 60px;
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ============================================================
   STATO ISCRIZIONI
   ============================================================ */
.iscrizioni-aperte {
  /*display: block !important;*/
  display: none !important;
}
.iscrizioni-chiuse {
  display: block !important;
  /*display: none !important;*/
}
/* Anno scolastico corrente – modifica solo qui per aggiornare il testo in tutta la sidebar */
.anno-scolastico::before {
  content: "2026/2027";
}
.anno-scolastico-piu-uno::before {
  content: "2027/2028";
}


/* ============================================================
   HOME — NAV CARDS
   ============================================================ */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.nav-card {
  padding: 36px 28px;
  display: block;
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c, var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.nav-card:hover::before { transform: scaleX(1); }
.nav-card-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
  transition: transform .4s var(--bounce);
}
.nav-card:hover .nav-card-icon { transform: scale(1.1) rotate(-5deg); }
.nav-card h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 10px; }
.nav-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .80rem;
  font-weight: 600;
  color: var(--c, var(--gold));
  margin-top: 18px;
  transition: gap .3s var(--ease);
}
.nav-card:hover .nav-card-link { gap: 12px; }

/* ============================================================
   COUNTER BAND
   ============================================================ */
.counter-band {
  padding: 56px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 768px) { .counter-grid { grid-template-columns: repeat(4, 1fr); } }
.counter-item {
  text-align: center;
  padding: 24px;
}
.c-num {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.counter-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   PILASTRI
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .pillars-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .pillars-grid { grid-template-columns: repeat(4,1fr); } }
.pillar-card {
  padding: 36px 28px;
  text-align: center;
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  transition: transform .4s var(--bounce);
}
.pillar-card:hover .pillar-icon { transform: scale(1.2) rotate(-6deg); }
.pillar-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 10px; }
.pillar-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   IL METODO — TABS
   ============================================================ */
.method-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.method-tab {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.method-tab:hover { color: var(--text); }
.method-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(74,122,72,.28);
}
.method-panel { display: none; animation: panelIn .45s var(--ease) both; }
.method-panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.method-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) { .method-inner { grid-template-columns: 1fr 1fr; } }
.method-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.method-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.method-img:hover img { transform: scale(1.05); }
.method-quote {
  font-family: var(--font-m);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 20px;
  opacity: .90;
}
.method-text h3 { font-size: 1.6rem; color: var(--text); margin-bottom: 12px; }
.method-text p  { color: var(--text-muted); margin-bottom: 14px; line-height: 1.85; }
.method-text p strong { color: var(--text); }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.manifesto {
  padding: 48px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.manifesto::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(154,110,30,.10), transparent);
  border-radius: 50%;
}
.manifesto h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 16px; }
.manifesto p  { color: var(--text-muted); max-width: 700px; line-height: 1.85; }

.timeline { position: relative; padding: 20px 0 20px 36px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 8px;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--green-l), var(--gold));
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-dot {
  position: absolute;
  left: -44px; top: 6px;
  width: 18px; height: 18px;
  background: var(--gold);
  border: 3px solid var(--dark);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(154,110,30,.20);
}
.tl-year {
  font-family: var(--font-h);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.tl-item p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; }

.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .certs-grid { grid-template-columns: repeat(2,1fr); } }
.cert-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
}
.cert-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--gold-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card h4 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.cert-card p  { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(3,1fr); } }
.team-card { text-align: center; padding: 32px 24px; }
.team-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  background: rgba(74,122,72,.15);
  color: var(--green);
}
.team-card h4 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.team-card p  { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

/* ── EQUIPE PSICOPEDAGOGICA ── */
.equipe-section { padding: 80px 0; }

/* Griglia 3 card con sfondo fotografico */
.equipe-bg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  .equipe-bg-grid { grid-template-columns: repeat(3, 1fr); }
}
.equipe-bg-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.equipe-bg-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .6s var(--ease);
}
.equipe-bg-card:hover img { transform: scale(1.08); }
.equipe-bg-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.equipe-bg-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.equipe-bg-ov h4 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; font-weight: 600; }
.equipe-bg-ov p  { color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.55; }

/* Disclaimer full-width */
.equipe-disclaimer {
  background: linear-gradient(135deg, rgba(106,168,79,.08), rgba(74,144,217,.08));
  border-left: 4px solid #6aa84f;
  border-radius: 12px;
  padding: 20px 24px;
}

.structure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .structure-grid { grid-template-columns: repeat(3,1fr); } }
.structure-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.structure-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .6s var(--ease);
}
.structure-card:hover img { transform: scale(1.08); }
.structure-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.42) 0%, transparent 52%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.structure-ov h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.structure-ov p  { color: rgba(255,255,255,.7); font-size: .82rem; }

/* ============================================================
   OFFERTA FORMATIVA
   ============================================================ */
.offerta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .offerta-grid { grid-template-columns: repeat(2,1fr); } }
.offerta-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
}
.offerta-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 14px;
}
.offerta-card h4 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.offerta-card p  { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

.giornata {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
}
@media (min-width: 768px) { .giornata { grid-template-columns: 1fr 1fr; } }
.gstep {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.gdot {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--gold-pale);
  border-radius: 13px;
}
.gstep h5 { color: var(--text); margin-bottom: 4px; font-size: .95rem; }
.gstep p  { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.g-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.g-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3,1fr); }
  .blog-card.featured { grid-column: span 2; }
}
.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-card.featured .blog-img { aspect-ratio: 16/7; }
.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.blog-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card.featured .blog-body h3 { font-size: 1.45rem; }
.blog-body p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}
.blog-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .80rem;
  font-weight: 600;
  color: var(--green);
  transition: gap .3s var(--ease);
}
.blog-card:hover .blog-link { gap: 12px; }

/* ============================================================
   GALLERIA
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.gf-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.gf-btn:hover { color: var(--text); }
.gf-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.gallery-grid {
  columns: 2;
  column-gap: 14px;
}
@media (min-width: 600px) { .gallery-grid { columns: 3; } }
@media (min-width: 900px) { .gallery-grid { columns: 4; } }
.g-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}
.g-item.hidden { display: none; }
.g-item img {
  width: 100%;
  display: block;
  transition: transform .5s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-ov {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: all .3s var(--ease);
}
.g-item:hover .g-ov {
  background: rgba(0,0,0,.35);
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.lb-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lbIn .35s var(--bounce) both;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: scale(1); }
}
#lbImg {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lb-caption {
  margin-top: 14px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.lb-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-top: 6px;
  letter-spacing: 1px;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .3s var(--ease), transform .3s var(--ease);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
#lbClose { top: 16px; right: 16px; }
#lbPrev  { left: 16px; top: 50%; transform: translateY(-50%); }
#lbNext  { right: 16px; top: 50%; transform: translateY(-50%); }

/* Instagram Widget (Elfsight) wrapper */
.ig-widget-wrap {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 4px;
  position: relative;
}
.ig-widget-wrap .eapps-instagram-feed-posts-item-template-tile {
  border-radius: 20px !important;
  overflow: hidden !important;
}
/* Gradiente che copre il link "Free Instagram Feed Widget" di Elfsight */
.ig-widget-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
  z-index: 5;
}
/* Pulsante Segui: sale sopra il gradiente coprendo il branding */
.ig-follow-wrap {
  /*position: relative;*/
  z-index: 10;
  /*margin-top: -60px;*/
  padding-top: 4px;
  background-color: var(--dark);
}
/* Quando il widget Elfsight è attivo (ha figli), nascondi il fallback statico */
.ig-widget-wrap:not(:empty) ~ .ig-fallback { display: none; }
/* Quando il widget non è ancora configurato, nascondilo e mostra solo il fallback */
.ig-widget-wrap:empty { display: none; }
.ig-widget-wrap:empty ~ .ig-fallback { display: grid; }

/* Instagram Grid
   ============================================================ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.ig-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  display: block;
}
.ig-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.ig-item:hover img { transform: scale(1.06); }
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  font-size: 2rem;
  color: #fff;
}
.ig-item:hover .ig-overlay { opacity: 1; }

/* ============================================================
   PODCAST BANNER (horizontal)
   ============================================================ */
.podcast-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
}
.podcast-banner-img {
  width: 110px; height: 110px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.10);
}
.podcast-banner-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.podcast-banner-body { flex: 1; min-width: 0; }
.podcast-banner-body h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 6px; }
.podcast-banner-body p  { color: var(--text-muted); font-size: .88rem; line-height: 1.7; margin-bottom: 0; }
.podcast-btn { background: #1DB954; color: #fff; flex-shrink: 0; white-space: nowrap; }
.podcast-btn:hover { background: #17a34a; color: #fff; }
@media (max-width: 640px) {
  .podcast-banner { flex-wrap: wrap; padding: 24px; }
  .podcast-banner-img { width: 72px; height: 72px; }
  .podcast-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   NEWS 2-COL GRID
   ============================================================ */
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 768px) { .news-grid-2col { grid-template-columns: 1fr; } }

/* ============================================================
   MEDIA PAGE
   ============================================================ */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.podcast-card { padding: 48px; }
.podcast-card h3 { font-size: 1.6rem; color: var(--text); margin-bottom: 16px; }
.podcast-card p  { color: var(--text-muted); margin-bottom: 28px; line-height: 1.8; max-width: 480px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16/7; overflow: hidden; flex-shrink: 0; }
.news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { color: var(--text); font-size: 1.3rem; margin-bottom: 12px; }
.news-body p  { color: var(--text-muted); font-size: .9rem; line-height: 1.8; margin-bottom: 14px; }
.news-quote {
  font-family: var(--font-m);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  opacity: .85;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,122,72,.10) 0%, transparent 70%);
}
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}
.cta-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 0 36px;
  border-top: 1px solid rgba(0,0,0,.09);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.footer-brand img {
  height: 46px;
  margin-bottom: 18px;
}
.footer-brand p   { color: var(--text-muted); font-size: .87rem; line-height: 1.7; max-width: 240px; }
.footer-grid > div:last-child li { white-space: nowrap; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}
.footer h4 {
  color: var(--text-muted);
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a  { color: var(--text-muted); font-size: .87rem; transition: color .3s; }
.footer ul a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.07);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .77rem;
  color: rgba(42,32,24,.35);
}

/* ============================================================
   BLOG ARTICLE
   ============================================================ */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.article-back:hover { color: var(--green); gap: 14px; }
.article-back i { font-size: .80rem; }

.article-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .80rem;
  color: var(--text-muted);
}
.article-hero-meta i { color: var(--gold); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .article-layout { grid-template-columns: 1fr 320px; }
}

.article-content {
  padding: 48px;
}
.article-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 22px;
  font-size: 1.02rem;
}
.article-content p strong { color: var(--text); }
.article-content em { color: var(--gold); font-style: italic; }

.article-pull-quote {
  border-left: 3px solid var(--gold);
  padding: 18px 24px;
  margin: 32px 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-m);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1.75;
}
.article-pull-quote cite {
  display: block;
  font-style: normal;
  font-size: .80rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--font-b);
}

.article-section-title {
  font-size: 1.5rem;
  color: var(--text);
  margin: 36px 0 14px;
}
.article-section-title::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,.08);
  flex-wrap: wrap;
}
.article-share span {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.article-share a {
  width: 38px; height: 38px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .95rem;
  transition: all .3s var(--ease);
}
.article-share a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.article-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-cta {
  padding: 28px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  border: 1px solid rgba(176,78,48,.20);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}
.sidebar-cta h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.sidebar-cta p  { color: rgba(255,255,255,.88); font-size: .87rem; line-height: 1.65; margin-bottom: 18px; }
.sidebar-cta .btn-sidebar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  color: var(--gold);
  transition: all .3s var(--bounce);
}
.sidebar-cta .btn-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176,78,48,.40);
  background: rgba(255,255,255,.92);
}

.sidebar-card {
  padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
}
.sidebar-card h4 {
  color: var(--text-muted);
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sidebar-related-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  transition: all .3s var(--ease);
}
.sidebar-related-item:hover {
  background: rgba(0,0,0,.06);
  border-color: rgba(154,110,30,.22);
  transform: translateX(4px);
}
.sidebar-related-item img {
  width: 58px; height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.rel-text { display: flex; flex-direction: column; gap: 4px; }
.rel-tag {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.rel-title {
  font-size: .80rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Article Prev/Next Nav */
.article-nav-section {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 36px 0;
}
.article-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
}
.article-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(16px);
  transition: all .35s var(--ease);
  max-width: 48%;
  flex: 1;
}
.article-nav-link.prev { flex-direction: row; }
.article-nav-link.next { flex-direction: row; text-align: right; justify-content: space-between; }
.article-nav-link.next > div { flex: 1; }
.article-nav-link:hover {
  background: var(--glass-h);
  border-color: rgba(154,110,30,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.article-nav-link.prev:hover { transform: translateX(-4px); }
.article-nav-link.next:hover { transform: translateX(4px); }
.article-nav-link i { color: var(--gold); flex-shrink: 0; font-size: 1rem; }
.nav-dir {
  display: block;
  font-size: .70rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}
.nav-title {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 599px) {
  .article-content { padding: 24px 20px; }
  .article-nav-inner { flex-direction: column; }
  .article-nav-link { max-width: 100%; }
  .article-nav-link.next { flex-direction: row; text-align: left; }
}

/* ============================================================
   IL METODO — NUOVE SEZIONI
   ============================================================ */

/* Testo apertura hero */
.hero-intro {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.85;
  margin-top: -20px;
}

/* Griglia Neuroscienze (3 colonne) */
.neuro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}
@media (min-width: 600px) { .neuro-grid { grid-template-columns: repeat(3,1fr); } }

.neuro-card {
  padding: 36px 28px;
  text-align: center;
}
.neuro-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
  transition: transform .4s var(--bounce);
}
.neuro-card:hover .neuro-icon { transform: scale(1.15) rotate(-5deg); }
.neuro-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}
.neuro-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.neuro-card p em  { color: var(--gold); font-style: italic; }

/* Variante con immagine di sfondo */
.neuro-card-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: local;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
  transition: transform .4s var(--bounce), box-shadow .4s var(--ease);
}
.neuro-card-img:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 44px rgba(0,0,0,.13);
}
.neuro-card-img::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: rgba(255, 255, 255, 0.86);
  z-index: 0;
  transition: background .4s var(--ease);
}
.neuro-card-img:hover::before {
  background: rgba(255, 255, 255, 0.92);
}
.neuro-card-img > * {
  position: relative;
  z-index: 1;
}
.neuro-card-img h3 { color: var(--text); }
.neuro-card-img p  { color: var(--text-muted); }
.neuro-card-img p strong { color: var(--text); }
.neuro-card-img p em { color: var(--gold); }

/* 6 Pilastri: griglia 3×2 */
.pillars-6 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .pillars-6 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .pillars-6 { grid-template-columns: repeat(3,1fr); } }

/* Lista libertà */
.freedom-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .freedom-list { grid-template-columns: repeat(2,1fr); } }
.freedom-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.freedom-list li i {
  color: var(--green);
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.freedom-list li strong { color: var(--text); }

/* Griglia card Alleanza con le Famiglie */
.family-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-self: center;
}
@media (max-width: 480px) {
  .family-values-grid { grid-template-columns: 1fr; }
}
.family-value-card {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.family-value-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  transition: transform .4s var(--bounce);
}
.family-value-card:hover .family-value-icon { transform: scale(1.2) rotate(-5deg); }
.family-value-card h4 {
  font-size: .95rem;
  color: var(--text);
  margin: 0;
}
.family-value-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Manifesto variante verde */
.manifesto-green {
  background: linear-gradient(135deg, rgba(58,104,104,.09), rgba(176,78,48,.05));
  border-color: rgba(58,104,104,.22);
}
.manifesto-green h3 { color: var(--green); }

/* Pillole fauna (sezione animali) */
.fauna-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.fauna-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-d);
  background: rgba(58,104,104,.12);
  border: 1px solid rgba(58,104,104,.22);
  border-radius: 50px;
  padding: 6px 16px;
  transition: transform .3s var(--bounce), background .3s;
}
.fauna-pills span:hover {
  background: rgba(58,104,104,.22);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .page-hero { padding: 80px 0 40px; }
  .manifesto { padding: 32px 22px; }
  .giornata { padding: 28px; }
  .podcast-card { padding: 32px 24px; }
  .news-body { padding: 24px; }
  #lbPrev { left: 8px; }
  #lbNext { right: 8px; }
}
@media (max-width: 480px) {
  .method-tab { padding: 8px 14px; font-size: .78rem; }
  .btn { padding: 12px 24px; }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(176,78,48,.35);
  opacity: 0;
  transform: translateY(20px) scale(.85);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .4s var(--bounce), box-shadow .3s var(--ease);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  box-shadow: 0 10px 36px rgba(176,78,48,.55);
  transform: translateY(-4px) scale(1.08);
}
.scroll-top:active {
  transform: scale(.94);
}
/* Su mobile si posiziona sopra la bottom nav */
@media (max-width: 767px) {
  .scroll-top {
    bottom: calc(var(--bot-h) + 18px);
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}

/* ============================================================
   CARTE DELLA SCUOLA — AMMINISTRAZIONE TRASPARENTE
   ============================================================ */

/* Citazione stile blockquote */
.bq-montessori {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(176,78,48,.06), rgba(176,78,48,.02));
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px;
  margin: 32px 0;
  position: relative;
}
.bq-montessori::before {
  content: '\201C';
  font-family: var(--font-h);
  font-size: 4rem;
  color: var(--gold);
  opacity: .25;
  position: absolute;
  top: -8px; left: 14px;
  line-height: 1;
}
.bq-montessori p {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}
.bq-montessori cite {
  display: block;
  margin-top: 10px;
  font-size: .82rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .5px;
}

/* Box dati identificativi */
.identity-box {
  background: linear-gradient(135deg, rgba(58,104,104,.10), rgba(58,104,104,.04));
  border: 1.5px solid rgba(58,104,104,.22);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .identity-box { grid-template-columns: repeat(3,1fr); gap: 20px; } }
.identity-box-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.identity-box-item .ib-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.identity-box-item .ib-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* Organigramma Governance */
.org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 600px) { .org-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .org-grid { grid-template-columns: repeat(3,1fr); } }
.org-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.org-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--green), var(--gold));
  border-radius: 4px 0 0 4px;
}
.org-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(58,104,104,.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.org-card h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: var(--font-h);
}
.org-card p {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.65;
}

/* Categorie documenti */
.doc-category {
  margin-bottom: 48px;
}
.doc-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,.07);
}
.doc-category-header .dc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-category-header h3 {
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--font-h);
}
.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  flex-wrap: wrap;
}
.doc-item-pdf {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(176,78,48,.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-item-info {
  flex: 1;
  min-width: 140px;
}
.doc-item-info h4 {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 3px;
  font-family: var(--font-h);
}
.doc-item-info p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.doc-item .btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  white-space: nowrap;
  transition: all .3s var(--bounce);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.doc-item .btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,104,104,.35);
}
.doc-item .btn-dl.disabled {
  background: rgba(0,0,0,.12);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}
.doc-item .btn-dl.disabled:hover {
  transform: none;
  box-shadow: none;
}


/* ============================================================
   HERO VIDEO (Home Page — Slideshow Cinematico)
   ============================================================ */

/* Override hero base per versione fullscreen */
.hero-video {
  min-height: 100vh;
  padding: 0;
  background: #1a1208;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h)); /* sale sotto la navbar trasparente */
}

/* Slideshow container */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Singolo slide */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.hs-active { opacity: 1; }

/* Ken Burns: ogni slide ha un'animazione diversa */
.hero-slide:nth-child(1) { animation: kb1 9s ease-in-out infinite; }
.hero-slide:nth-child(2) { animation: kb2 9s ease-in-out infinite; }
.hero-slide:nth-child(3) { animation: kb3 9s ease-in-out infinite; }
.hero-slide:nth-child(4) { animation: kb4 9s ease-in-out infinite; }

@keyframes kb1 {
  0%   { transform: scale(1.00) translate( 0%,  0%); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kb2 {
  0%   { transform: scale(1.12) translate(-2%,  0%); }
  100% { transform: scale(1.00) translate( 0%, -2%); }
}
@keyframes kb3 {
  0%   { transform: scale(1.00) translate( 2%,  1%); }
  100% { transform: scale(1.12) translate( 0%,  0%); }
}
@keyframes kb4 {
  0%   { transform: scale(1.08) translate( 0%, -1%); }
  100% { transform: scale(1.00) translate( 2%,  1%); }
}

/* Overlay scuro cinematico — 45% uniforme + rinforzo in basso per leggibilità */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.62) 100%
    );
}

/* Content wrapper centrato */
.hero-v-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 100px;
}

/* Eyebrow / pill in cima */
.hero-eyebrow {
  display: inline-block;
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 20px;
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeUp 1s var(--ease) .3s both;
}

/* Titolo principale enorme — bianco, potente */
.hero-v-title {
  font-family: var(--font-h);
  font-size: clamp(3rem, 8.5vw, 5.8rem);
  color: #ffffff !important;
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55), 0 6px 40px rgba(0,0,0,.35);
  animation: fadeUp 1s var(--ease) .5s both;
  letter-spacing: -.5px;
}

/* Parola che cambia con il typing */
.typing-word {
  color: #e8a87c;          /* terracotta caldo */
  display: inline-block;
  position: relative;
  min-width: 1ch;
  white-space: nowrap;
}
/* Su schermi stretti la parte fissa va su riga propria:
   così la parola animata ha sempre la sua riga dedicata
   e non causa spostamenti verticali degli elementi sottostanti */
@media (max-width: 640px) {
  .title-static {
    display: block;
  }
}
.typing-word::after {
  content: '|';
  position: absolute;
  right: -9px;
  top: 0;
  color: #e8a87c;
  font-weight: 300;
  animation: cursorBlink .8s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Citazione corsiva — bianca */
.hero-v-quote {
  font-family: var(--font-m);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
  letter-spacing: .4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  animation: fadeUp 1s var(--ease) .7s both;
}

/* Sottotitolo — bianco leggibile */
.hero-v-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 44px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  animation: fadeUp 1s var(--ease) .9s both;
}

/* ---- CTA Buttons ---- */

/* Bottone principale — Terracotta, grande, angoli arrotondati */
.btn-hero-cta {
  background: linear-gradient(135deg, #d97c4e 0%, #b04e30 100%);
  color: #ffffff;
  padding: 18px 48px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 6px 32px rgba(176,78,48,.55), 0 0 0 0 rgba(176,78,48,.35);
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: transform .35s var(--bounce), box-shadow .35s var(--ease), background .35s var(--ease);
  animation: fadeUp 1s var(--ease) 1.1s both;
}
.btn-hero-cta:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 18px 52px rgba(176,78,48,.70), 0 0 0 6px rgba(176,78,48,.18);
  background: linear-gradient(135deg, #e08c5e 0%, #c05a38 100%);
  color: #fff;
}

.btn-hero-ghost {
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.92);
  border: 1.5px solid rgba(255,255,255,.40);
  padding: 16px 42px;
  font-size: .97rem;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--bounce);
  animation: fadeUp 1s var(--ease) 1.2s both;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-4px);
  color: #fff;
}

/* ---- Dots di navigazione ---- */
.hero-dots {
  position: absolute;
  bottom: 34px;
  right: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.30);
  border: 1.5px solid rgba(255,255,255,.55);
  cursor: pointer;
  transition: all .35s var(--ease);
  padding: 0;
}
.hero-dot.active {
  background: rgba(255,255,255,.92);
  transform: scale(1.35);
  border-color: transparent;
}
.hero-dot:hover:not(.active) {
  background: rgba(255,255,255,.55);
  transform: scale(1.15);
}

/* ---- Scroll hint (mouse animato) ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.40);
  border-radius: 13px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,.65);
  border-radius: 2px;
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%   { top: 5px;  opacity: 1; }
  80%  { top: 22px; opacity: 0; }
  100% { top: 5px;  opacity: 0; }
}

/* ---- Responsive mobile ---- */
@media (max-width: 480px) {
  .hero-v-title { font-size: 2.6rem; }
  .btn-hero-cta,
  .btn-hero-ghost { padding: 14px 28px; font-size: .88rem; }
  .hero-dots { right: 16px; bottom: 20px; }
}

/* ============================================================
   SCROLLER DEI VALORI
   ============================================================ */
.values-scroller-wrap {
  overflow: hidden;
  padding: 16px 0;
  background: var(--dark2);
  border-top: 1px solid rgba(0,0,0,.07);
  border-bottom: 1px solid rgba(0,0,0,.07);
  position: relative;
  z-index: 1;
  /* Bordi sfumati laterali */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.values-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: vsScroll 40s linear infinite;
  gap: 0;
}
.values-scroller-wrap:hover .values-track {
  animation-play-state: paused;
}
.values-track span {
  display: inline-block;
  padding: 4px 22px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .3s var(--ease);
  cursor: default;
}
.values-track span:hover {
  color: var(--green);
}
.values-track .vs-sep {
  padding: 0 4px;
  color: var(--gold);
  opacity: .55;
  font-size: .70rem;
  letter-spacing: 0;
}
@keyframes vsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   I NOSTRI MONDI — GRIGLIA DINAMICA
   ============================================================ */
.mondi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 767px) {
  .mondi-grid { grid-template-columns: 1fr; }
}

.mondo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  cursor: pointer;
  box-shadow: 0 8px 36px rgba(0,0,0,.13);
  transition: box-shadow .4s var(--ease), transform .4s var(--bounce);
}
.mondo-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transform: translateY(-4px);
}

/* Immagine di sfondo con zoom al hover */
.mondo-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .65s var(--ease);
  will-change: transform;
}
.mondo-card:hover .mondo-img {
  transform: scale(1.08);
}

/* Label sempre visibile (in basso) */
.mondo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 100%);
  z-index: 2;
  transition: opacity .35s var(--ease);
}
.mondo-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px;
  padding: 3px 12px;
  margin-bottom: 7px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mondo-label h3 {
  color: #fff;
  font-size: 1.45rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  margin: 0;
}
.mondo-card:hover .mondo-label {
  opacity: 0;
  pointer-events: none;
}

/* Overlay descrittivo — appare all'hover */
.mondo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(20, 14, 8, .84) 0%,
    rgba(58, 104, 104, .78) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity .38s var(--ease);
}
.mondo-card:hover .mondo-overlay {
  opacity: 1;
}
.mondo-overlay-content {
  text-align: center;
  padding: 32px 28px;
  transform: translateY(18px);
  transition: transform .4s var(--ease);
}
.mondo-card:hover .mondo-overlay-content {
  transform: translateY(0);
}
.mondo-icon {
  display: block;
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1;
}
.mondo-overlay-content h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.mondo-overlay-content p {
  color: rgba(255,255,255,.84);
  font-size: .88rem;
  line-height: 1.75;
  max-width: 270px;
  margin: 0 auto 20px;
}
.mondo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1.5px solid rgba(255,255,255,.45);
  padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.mondo-card:hover .mondo-link {
  border-color: rgba(255,255,255,.9);
  gap: 14px;
}

/* ============================================================
   TIMELINE — UN GIORNO CON NOI
   ============================================================ */
.timeline-day-section { background: transparent; }

.day-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}
/* Linea verticale centrale */
.day-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 8px;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(to bottom, var(--green-l), var(--gold-l), var(--gold));
  border-radius: 2px;
  z-index: 0;
}

.day-step {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  grid-template-areas: "body dot void";
  column-gap: 32px;
  align-items: start;
  margin-bottom: 44px;
}
/* Pari → contenuto a destra */
.day-step:nth-child(even) {
  grid-template-areas: "void dot body";
}

/* Named areas */
.day-step-body { grid-area: body; }
.day-step-dot  { grid-area: dot;  }
.day-step-void { grid-area: void; }

/* Icona circolare */
.day-step-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(154,110,30,.22), 0 0 0 0 rgba(176,78,48,.07);
  position: relative;
  z-index: 2;
  transition: transform .4s var(--bounce), box-shadow .4s var(--ease);
  cursor: default;
}
.day-step:hover .day-step-dot {
  transform: scale(1.13) rotate(6deg);
  box-shadow: 0 8px 32px rgba(154,110,30,.38), 0 0 0 10px rgba(176,78,48,.12);
}

/* Card contenuto */
.day-step-body {
  padding: 26px 30px;
}
/* Allineamento testo: dispari a destra (verso il centro), pari a sinistra */
.day-step:nth-child(odd)  .day-step-body { text-align: right; }
.day-step:nth-child(even) .day-step-body { text-align: left; }

/* Orario */
.day-step-time {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(176,78,48,.18);
  border-radius: 50px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.day-step-body h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
}
.day-step-body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin: 0;
}

/* Mobile: tutto a destra del dot, layout verticale */
@media (max-width: 767px) {
  .day-timeline::before { left: 31px; }

  .day-step,
  .day-step:nth-child(odd),
  .day-step:nth-child(even) {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "dot body" !important;
    column-gap: 16px;
  }
  .day-step-void { display: none; }
  .day-step:nth-child(odd)  .day-step-body,
  .day-step:nth-child(even) .day-step-body { text-align: left; }
}

/* ============================================================
   VOCI DELLA COMUNITÀ — "Cerchi Magici"
   ============================================================ */
.voci-section { position: relative; }

.voci-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .voci-grid { grid-template-columns: repeat(3, 1fr); }
}

.voce-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 44px 28px 36px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  transition: transform .4s var(--bounce), box-shadow .4s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.voce-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green-l), var(--gold-l));
  transform: scaleX(0);
  transition: transform .4s var(--ease);
  transform-origin: left;
}
.voce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.13);
  border-color: rgba(176,78,48,.18);
}
.voce-card:hover::before { transform: scaleX(1); }

/* Cerchio magico */
.voce-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(176,78,48,.22);
  box-shadow:
    0 0 0 7px rgba(176,78,48,.07),
    0 8px 28px rgba(0,0,0,.12);
  margin-bottom: 28px;
  transition: transform .45s var(--bounce), box-shadow .45s var(--ease);
}
.voce-card:hover .voce-circle {
  transform: scale(1.07);
  box-shadow:
    0 0 0 11px rgba(176,78,48,.11),
    0 12px 38px rgba(0,0,0,.18);
}
.voce-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Virgolette decorative */
.voce-quote {
  position: relative;
  font-family: var(--font-h);
  font-style: italic;
  font-size: .97rem;
  color: var(--text);
  line-height: 1.82;
  margin: 0 0 18px;
  padding-top: 30px;
}
.voce-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--gold);
  opacity: .25;
  font-family: var(--font-h);
  line-height: 1;
}

/* Firma */
.voce-cite {
  display: block;
  font-style: normal;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
