/* Palette e tipografia per centro di cura/olistico - toni panna e verde menta */
:root{
  --cream: #F7F3EB; /* panna */
  --mint:  #BFEAD5; /* verde menta */
  --sage:  #DDECE2; /* soft salvia */
  --accent: #93C9B4; /* accento */
  --accent-dark: #6F9E89;
  --text: #22332C;
  --muted: #6E736E;
  --card-bg: rgba(255,255,255,0.9);
  --glass: rgba(255,255,255,0.55);
  --yellow: #fdbe21; /* giallo accent */
}

/* site logo */
.site-logo{height:128px;max-height:128px;width:auto;display:block;object-fit:contain}
.brand-link{display:inline-flex;align-items:center}

/* TEAM (staff) styles */
.team{padding:2rem 0;background:transparent}
.team h3{font-family:'Playfair Display', serif;margin-bottom:1rem;color:var(--text)}
.team-grid{display:flex;flex-direction:column;gap:1rem}
.team-member{display:flex;gap:1.25rem;align-items:center;background:var(--card-bg);padding:1rem;border-radius:10px;box-shadow:0 6px 16px rgba(10,10,10,0.04)}
.member-photo{flex:0 0 140px;text-align:center}
.member-photo .member-name{font-weight:700;margin-bottom:.5rem;color:var(--text)}
.member-photo img{width:135px;height:135px;object-fit:cover;border-radius:8px;display:block;margin:0 auto}
.member-info{flex:1}
.member-info p{margin:0;color:var(--muted);line-height:1.6}

@media (min-width:900px){
  .team-grid{display:grid;grid-template-columns:1fr;gap:1rem}
  .team-member{display:flex}
}

@media (max-width:720px){
  .team-member{flex-direction:column;align-items:center}
  .member-photo{flex:0 0 auto;width:100%}
  .member-photo img{width:115px;height:115px}
  .member-info{width:100%}
}

/* footer layout */
.footer-inner{display:flex;align-items:flex-start;justify-content:center;gap:1rem;position:relative}
.footer-brand{display:flex;flex-direction:column;align-items:center;gap:.25rem}
.wh-brand-abs{position:absolute;right:18px;top:50%;transform:translateY(-50%);z-index:50;display:flex;flex-direction:column;align-items:center;gap:6px}
.wh-logo{height:96px;max-height:96px;width:auto;display:block}
.wh-text{font-size:.95rem;color:var(--yellow);font-weight:700}
.footer-copy{display:none}
.site-footer{
  position:relative;
  overflow:hidden;
  padding:0;
  margin-top:2rem;
  color:var(--muted);
  text-align:left;
  border-top:6px solid var(--yellow);
 background-image: url('../images/tramonto.png');
 background-position: center center;
 background-repeat: no-repeat;
 background-size: cover;
 min-height:272px;
}

.footer-social{position:absolute;left:18px;top:50%;display:flex;align-items:center;gap:12px;padding:6px 8px;z-index:60;margin:30px}
.footer-social .social-title{font-size:.95rem;color:var(--muted);font-weight:700;margin:0 0 0 -20px;padding:0;line-height:1;margin-top:-60px}
.footer-fb{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:8px;background:rgba(0,0,0,0.18);color:var(--yellow);text-decoration:none;margin-left:30px;}
.footer-fb svg{width:25px;height:25px;display:block}
.footer-fb:hover{background:rgba(0,0,0,0.26);transform:none}

@media (max-width:720px){
  .site-logo{height:96px;max-height:96px}
  .wh-logo{height:64px;max-height:64px}
  .footer-copy .footer-logo{height:48px}
  .footer-inner{flex-direction:column;gap:.75rem}
  .footer-social{left:12px;top:18px;gap:8px}
  .footer-fb{margin-left:30px}
  .wh-brand-abs{right:12px;top:auto;bottom:12px;transform:none}
  .wh-logo{height:64px}
  .wh-text{font-size:.85rem}
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background-color:var(--cream);
  background-image:radial-gradient(circle at 10% 10%, rgba(191,234,213,0.55), transparent 30%);
  background-repeat:no-repeat;
  background-size:cover;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  font-size:16px;
}
.container{max-width:1100px;margin:0 auto;padding:1rem}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.site-header{background:linear-gradient(180deg, var(--glass), transparent);padding:.85rem 0;position:sticky;top:0;backdrop-filter: blur(6px);z-index:40}
.main-nav{display:flex;align-items:center;order:2;margin-left:auto}
.header-actions{display:flex;align-items:center;gap:.75rem;order:3}
.brand{font-family:'Playfair Display', serif;font-weight:700;margin:0;color:var(--accent);font-size:1.25rem;letter-spacing:.4px}
.bgm-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(111,158,137,0.35);background:rgba(255,255,255,0.4);color:var(--accent-dark);cursor:pointer;transition:transform .18s ease, background .18s ease, border-color .18s ease}
.bgm-toggle:hover, .bgm-toggle:focus-visible{transform:translateY(-1px);background:rgba(255,255,255,0.6);border-color:rgba(111,158,137,0.7);outline:none}
.bgm-toggle.is-on{background:var(--accent-dark);color:var(--cream);border-color:var(--accent-dark)}
.bgm-icon{font-size:1.2rem;line-height:1}
.main-nav a{margin-left:1.25rem;color:var(--muted);text-decoration:none;font-weight:600;transition:color .18s ease, opacity .18s ease}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active{color:var(--accent-dark);outline: none}
.nav-dropdown{position:relative}
.nav-submenu{position:absolute;top:100%;left:0;min-width:150px;padding:.5rem 0;background:var(--card-bg);border-radius:8px;box-shadow:0 8px 24px rgba(30,30,30,0.1);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.nav-submenu a{display:block;margin:0;padding:.45rem .75rem;white-space:nowrap}
.nav-submenu a.active{color:var(--accent-dark);font-weight:700}
.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu{opacity:1;visibility:visible;transform:translateY(0)}

.page-shell{opacity:0;transform:translateY(8px);transition:opacity .24s ease, transform .24s ease;min-height:36vh}
.page-shell.is-visible{opacity:1;transform:none}
.page-placeholder{display:flex;align-items:center;justify-content:center;opacity:1;transform:none;min-height:40vh}
.page-placeholder .hero{padding:3rem 0}
.page-placeholder .hero-inner{max-width:620px;display:flex;align-items:center;justify-content:center;min-height:180px}

.loading-spinner{
  width:54px;
  height:54px;
  border-radius:50%;
  border:4px solid rgba(111,158,137,0.2);
  border-top-color: var(--accent-dark);
  animation: spin .9s linear infinite;
  box-shadow:0 0 0 1px rgba(111,158,137,0.08);
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* HERO */
.hero{padding:5rem 0 3rem;text-align:center;background-color:transparent;background-image:none}
.hero-inner{max-width:920px;margin:0 auto;padding:2.25rem;background:linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.92));border-radius:18px;box-shadow:0 12px 40px rgba(20,30,20,0.06)}
.hero h2{font-family:'Playfair Display', serif;font-size:3rem;margin:0 0 .5rem;color:var(--text)}
.hero p{font-size:1.05rem;color:var(--text);margin:0}
.event-meta{margin-top:.75rem;color:var(--muted);font-size:.95rem}
.cta{display:inline-block;margin-top:1.25rem;padding:.85rem 1.4rem;background:var(--accent);color:white;border-radius:999px;text-decoration:none;font-weight:700;letter-spacing:.2px;transition:transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease}
.cta:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(100,140,120,0.12)}

/* SECTIONS */
section{padding:2.5rem 0}
.about p{max-width:72ch;margin:0 auto;color:var(--text);font-size:1rem}
.program p{max-width:72ch;margin:0 auto;color:var(--text)}
.section-banner{width:100%;display:flex;justify-content:center;overflow:hidden;line-height:0}
.section-banner img{display:block;width:100%;max-width:1734px;height:auto;margin:0 auto;object-fit:contain;object-position:center center}
.reference-container{max-width:100%;padding:0}
.reference-container .section-banner{margin-top:10px;margin-bottom:10px;overflow:hidden}
.testimonial-banner{position:relative;width:100%;max-width:1734px;aspect-ratio:1/1;background:url('../images/testimonianze.png') center center / contain no-repeat;line-height:normal}
.testimonial-banner .extract{position:absolute;top:20%;left:10%;width:50%;height:30%;display:flex;align-items:center;padding:1.5rem 2rem;background:transparent;color:#384A43;font-family:'Playfair Display',serif;font-size:3.5rem;font-weight:700;line-height:1.2}
.testimonial-banner .testimony{position:absolute;top:55%;left:5%;width:45%;height:30%;display:flex;align-items:center;padding:1.5rem 2rem;background:transparent;color:#384A43;font-family:'Playfair Display',serif;font-size:1rem;font-weight:400;line-height:1.5}
.testimonial-banner .quote{position:absolute;top:49%;left:11%;width:35%;height:15%;display:flex;align-items:center;padding:1.5rem 2rem;background:transparent;color:#384A43;font-family:'Playfair Display',serif;font-size:.9rem;font-style:italic;line-height:1.5}
.testimonial-banner .extract,.testimonial-banner .quote,.testimonial-banner .testimony{transition:opacity .7s ease}
.testimonial-banner.is-fading .extract,.testimonial-banner.is-fading .quote,.testimonial-banner.is-fading .testimony{opacity:0}
@media (max-width:720px){
  .testimonial-banner .extract{font-size:1rem}
  .testimonial-banner .testimony{font-size:.4rem}
  .testimonial-banner .quote{left:7%;width:45%;font-size:.4rem}
}
.schedule-banner{margin-top:1rem}
.activity-section,.schedule-section{padding-top:1.5rem;padding-bottom:1.5rem}
.centro-location-banner{background:var(--cream)}
.centro-intro{padding-bottom:0}

/* CARDS & TESTIMONIALS */
.card, .hero-inner{background:var(--card-bg)}
.testimonials{max-width:920px;margin:0 auto}
.testimonials .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.testimonials .card p{font-size:.9rem}
.card{border-radius:12px;overflow:hidden;padding:1.5rem}
.testimonials blockquote{background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));padding:1.15rem;border-radius:12px;margin:0;box-shadow:0 8px 20px rgba(30,30,30,0.04);font-style:italic;color:var(--text)}
.testimonials footer{display:block;margin-top:.5rem;font-style:normal;font-weight:700;color:var(--muted);}

/* testimonial slider */
/* Use aspect-ratio close to original images (1280x1146 and 1280x1127) so desktop preserves original feel
   Increase min-height and relax max-height so less vertical cropping occurs */
.testimonial-slider{position:relative;width:100%;aspect-ratio:1280/1140;min-height:520px;max-height:90vh;overflow:hidden;border-radius:12px}
.testimonial-slider .slide{position:absolute;inset:0;display:block;opacity:0;transition:opacity .8s ease, transform .4s ease;display:flex;align-items:center;justify-content:center;overflow:hidden}
.testimonial-slider .slide img{width:100%;height:100%;display:block;border-radius:8px;object-fit:cover;object-position:center center}
.testimonial-slider .slide.active{opacity:1;position:relative}

/* keep a reasonable fixed height on small screens to avoid overly tall blocks */
@media (max-width:720px){
  .testimonial-slider{aspect-ratio:16/9;height:auto;max-height:60vh;min-height:260px}
}

/* dots indicator for testimonial slider */
.testimonial-dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:8px;z-index:40}
.testimonial-dots .dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.65);border:0;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,0.12)}
.testimonial-dots .dot.active{background:var(--accent-dark);width:12px;height:12px}

/* CONTACTS / MUTED */
.muted{color:var(--muted);font-size:.95rem}

/* FOOTER */
/* Image original dimensions: 1251x272 — set min-height to match image height */
.site-footer{position:relative;overflow:hidden;padding:0;margin-top:2rem;color:var(--muted);text-align:left;border-top:6px solid var(--yellow);background-image:url('../images/tramonto.png');background-position:center center;background-repeat:no-repeat;background-size:cover;min-height:272px}.site-footer .footer-inner{padding:2rem 1rem;display:flex;align-items:center;justify-content:center}

/* place WH logo absolute bottom-right (with caption) */
.wh-brand-abs{position:absolute;right:18px;bottom:12px;z-index:50;display:flex;flex-direction:column;align-items:center;gap:6px}
.wh-logo{height:96px;max-height:96px;width:auto;display:block}
.wh-text{font-size:.95rem;color:var(--yellow);font-weight:700}

/* Facebook icon in footer */
.footer-fb{position:absolute;left:18px;bottom:20px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,0.18);color:var(--yellow);text-decoration:none;font-size:0}
.footer-fb svg{width:25px;height:25px;display:block}
.footer-fb:hover{background:rgba(0,0,0,0.26);transform:none}
@media (max-width:720px){
  .footer-fb{left:12px;bottom:12px;width:32px;height:32px}
  .footer-fb svg{width:14px;height:14px}
}

/* Reduce footer height on small screens so it doesn't dominate viewport */
@media (max-width:720px){
  .site-footer{min-height:220px;background-size:cover}
  .wh-brand-abs{right:12px;bottom:8px}
  .wh-logo{height:64px}
  .wh-text{font-size:.85rem}
  .footer-fb{left:12px;bottom:12px;width:40px;height:40px}
}

/* NAV TOGGLE */
.nav-toggle{display:none;background:transparent;border:0;padding:.4rem;cursor:pointer}
.nav-toggle .bar{display:block;width:22px;height:2px;background:var(--muted);margin:4px 0;border-radius:2px;transition:transform .18s ease, opacity .18s ease}
.main-nav{display:flex;align-items:center}
.main-nav a{padding:.5rem .5rem}

/* mobile behavior */
@media (max-width:720px){
  .nav-toggle{display:inline-flex;flex-direction:column;align-items:center}
  .main-nav{position:fixed;top:64px;right:16px;background:var(--card-bg);backdrop-filter:blur(6px);box-shadow:0 8px 30px rgba(30,30,30,0.08);border-radius:12px;padding:1rem;flex-direction:column;gap:.5rem;transform:translateY(-10px) scale(.98);opacity:0;pointer-events:none;transition:opacity .18s ease, transform .18s ease}
  .main-nav.open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
  .nav-dropdown{width:100%}
  .nav-submenu{position:static;min-width:0;padding:.25rem 0 0 1rem;background:transparent;border-radius:0;box-shadow:none;opacity:1;visibility:visible;transform:none}
  .nav-submenu a{padding:.35rem .5rem}
}

/* Accessibility helpers */
.hidden-visually{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Responsive adjustments */
@media (max-width:900px){
  .hero h2{font-size:2.2rem}
  .testimonials .grid{grid-template-columns:1fr}
  .main-nav a{margin-left:.75rem}
}

@media (max-width:560px){
  .container{padding:.75rem}
  .hero{padding:3rem 0 2rem}
  .hero-inner{padding:1.5rem}
  .brand{font-size:1.05rem}
  .event-details-grid{grid-template-columns:1fr!important}
  .trigger-warning-list{columns:1!important}
  .trigger-warning-list ul{padding-left:1.25rem;margin-top:.75rem}
  .trigger-warning-list li{overflow-wrap:anywhere}
}

@media (max-width:720px){
  .principles-grid{grid-template-columns:1fr!important}
  .principles-grid .card{grid-column:1!important;grid-row:auto!important}
}

/* Swapped footer positions */
.footer-social-right{left:auto;right:18px}
.wh-brand-left{right:auto;left:18px}

@media (max-width:720px){
  .footer-social-right{left:auto;right:12px}
  .wh-brand-left{right:auto;left:12px}
}