/* Piccoli Passi ETS - stile pastello */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --background: hsl(45, 100%, 98%);
  --foreground: hsl(240, 10%, 20%);
  --muted: hsl(240, 5%, 45%);
  --primary: hsl(340, 75%, 70%);
  --secondary: hsl(200, 80%, 70%);
  --accent: hsl(160, 60%, 70%);
  --border: hsl(220, 30%, 90%);
  --card: hsl(0, 0%, 100%);
  --shadow-soft: 0 10px 30px -10px hsla(340, 75%, 75%, 0.2);
  --shadow-card: 0 4px 20px -4px hsla(340, 75%, 75%, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  text-align: justify;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-align: center; line-height: 1.25; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 860px; margin: 0 auto; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; white-space: nowrap; flex-shrink: 0; font-weight: 600; font-size: 1.05rem; color: var(--foreground); text-decoration: none; }
.brand svg { color: var(--primary); fill: var(--primary); }
.menu { display: none; list-style: none; gap: .1rem; align-items: center; text-align: left; }
.menu a { color: var(--foreground); text-decoration: none; font-weight: 500; padding: .5rem .55rem; border-radius: .6rem; font-size: .84rem; white-space: nowrap; }
.menu a:hover { color: var(--primary); background: hsla(340, 75%, 75%, .12); }
.menu-btn { display: block; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--foreground); }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: .75rem 0 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .75rem 1rem; text-decoration: none; color: var(--foreground); border-radius: .6rem; }
.mobile-menu a:hover { background: hsla(340, 75%, 75%, .12); }

/* Sections */
section { padding: 5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0 auto 3rem; }
.bg-soft-1 { background: linear-gradient(135deg, hsla(340,75%,70%,.06), var(--background), hsla(200,80%,70%,.06)); }
.bg-soft-2 { background: hsla(240, 20%, 96%, .6); }
.bg-soft-3 { background: linear-gradient(135deg, hsla(160,60%,70%,.07), var(--background), hsla(200,80%,70%,.06)); }

.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.card p + p { margin-top: 1rem; }
.text-primary { color: var(--primary); font-weight: 600; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 96px; padding-bottom: 4rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero-casa-famiglia.jpg') center/cover;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(45,100%,98%,.95), hsla(45,100%,98%,.85), hsla(45,100%,98%,.65));
}
.hero-content { position: relative; z-index: 1; }
.calendar-banner {
  display: block; text-decoration: none;
  background: hsla(340, 75%, 70%, .12);
  border: 2px solid var(--primary);
  border-radius: .8rem; padding: 1.4rem; margin-bottom: 2rem;
  transition: all .25s ease;
}
.calendar-banner:hover { background: hsla(340,75%,70%,.22); box-shadow: var(--shadow-card); }
.calendar-banner p { text-align: center; color: var(--primary); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.hero-photo { border-radius: .8rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); margin-bottom: 2rem; }
.hero p.lead { font-size: 1.1rem; margin-bottom: 1.25rem; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.timeline-year {
  flex-shrink: 0; width: 88px; height: 88px; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem;
}
.y1 { background: hsla(340, 75%, 70%, .22); }
.y2 { background: hsla(200, 80%, 70%, .22); }
.timeline-item h3 { text-align: left; font-size: 1.6rem; margin-bottom: .75rem; }
.timeline-item .card { flex: 1; }
.timeline-item .card p { color: var(--muted); }

/* Come aiutarci */
.help-list { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  padding: .75rem 1.5rem; border-radius: .7rem; font-weight: 600; transition: all .2s ease;
}
.btn:hover { filter: brightness(.94); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; color: var(--foreground); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.cf-box { margin-top: 1rem; padding: 1.5rem; background: var(--card); border: 2px solid var(--border); border-radius: 1rem; }
.cf-box p { text-align: center; font-family: monospace; font-size: 1.5rem; font-weight: 600; letter-spacing: .05em; }

/* Sostenitori */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.logo-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; display: flex; align-items: center; justify-content: center;
  min-height: 130px; transition: all .25s ease;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.logo-card img { max-height: 76px; width: auto; object-fit: contain; }
.group-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.thanks {
  background: linear-gradient(135deg, hsla(340,75%,70%,.12), hsla(200,80%,70%,.12), hsla(160,60%,70%,.12));
  border-radius: 1.5rem; padding: 2.5rem; text-align: center;
}
.thanks p { text-align: center; color: var(--muted); max-width: 640px; margin: 1rem auto 0; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--card); border: 2px solid var(--border); border-radius: 1rem; padding: 1.75rem; text-align: center; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: .75rem; color: var(--primary); }
.contact-card p, .contact-card a { text-align: center; display: block; color: var(--muted); text-decoration: none; }
.contact-card a:hover { color: var(--primary); }

/* Footer */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
footer h4 { text-align: left; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
footer li, footer a { color: var(--muted); font-size: .92rem; text-decoration: none; }
footer .links a:hover { color: var(--primary); }
.socials { display: flex; gap: .75rem; }
.socials a {
  width: 40px; height: 40px; border-radius: .75rem; display: flex; align-items: center; justify-content: center;
  background: hsla(340, 75%, 70%, .12); color: var(--primary);
}
.socials a:hover { background: hsla(340, 75%, 70%, .22); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; color: var(--muted); font-size: .88rem; }
.footer-bottom p { text-align: center; margin-top: .35rem; }

/* Pagina calendari */
.page-hero {
  position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
  background: url('images/calendario-2026-scatole.jpg') center/cover; color: #fff; text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.4), var(--background)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); font-weight: 700; margin-bottom: 1rem; }
.page-hero p { text-align: center; font-size: 1.25rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.gallery img { border-radius: 1rem; box-shadow: var(--shadow-card); width: 100%; }
.center { text-align: center; }
.center p { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

@media (min-width: 1100px) {
  .menu { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .card { padding: 3rem; }
  section { padding: 7rem 0; }
}
