/* ==========================================================================
   Time Out — Un tempo per stare insieme!
   ========================================================================== */

:root {
  --yellow: #F8C428;
  --magenta: #EC1E79;
  --blue: #1B3A97;
  --coral: #F15A29;
  --white: #FFFFFF;
  --ink: #1A1A2E;

  --font-title: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 72px;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(27, 58, 151, 0.12);
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-cta {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-header-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-hero-cta {
  font-size: 1.1rem;
  padding: 16px 36px;
  margin-top: 8px;
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-upload {
  display: block;
  width: fit-content;
  margin: 8px auto 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 500;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img { height: 52px; width: auto; }

.main-nav {
  display: none;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--magenta); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 16px 0 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .site-header.nav-open .main-nav {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .main-nav a { padding: 10px 0; }
  .btn-header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-height) + 56px) 0 72px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--magenta) 100%);
  color: var(--white);
  text-align: center;
}

.hero-title {
  margin: 0 0 0.3em;
  line-height: 0;
}

.hero-logo-img {
  width: min(92vw, 620px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.2));
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.6em;
}

.section-blue .section-title,
.section-magenta .section-title {
  color: var(--white);
}

.subsection-title {
  font-size: 1.5rem;
  color: var(--blue);
  margin: 32px 0 16px;
  text-align: center;
}

.subsection-title-light { color: var(--white); }

.lead {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1em;
}

.note {
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 16px auto 0;
}

.note-light { color: var(--white); opacity: 0.9; }

.section-white { background: var(--white); }
.section-yellow { background: var(--yellow); }
.section-blue { background: var(--blue); color: var(--white); }
.section-magenta { background: var(--magenta); color: var(--white); }

.section-white p,
.section-yellow p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Quando e dove ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 40px;
}

@media (min-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(27, 58, 151, 0.22);
}

.info-icon { font-size: 2rem; }

.info-card h3 { color: var(--blue); margin: 8px 0 6px; }
.info-card p { margin: 0; }

.schedule-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .schedule-blocks { grid-template-columns: repeat(3, 1fr); }
}

.schedule-block {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schedule-block:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.schedule-block-optional {
  background: var(--coral);
}

.schedule-time {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
}

.schedule-label { font-size: 0.9rem; opacity: 0.95; }

/* ---------- Attività ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .activities-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .activities-grid { grid-template-columns: repeat(4, 1fr); }
}

.activity-card {
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.activity-card h3 { color: var(--white); font-size: 1.35rem; }
.activity-card p { margin: 0; font-size: 1.1rem; opacity: 0.95; }

.activity-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.activity-card-blue { background: var(--blue); }
.activity-card-magenta { background: var(--magenta); }
.activity-card-coral { background: var(--coral); }
.activity-card-yellow { background: var(--yellow); color: var(--ink); }
.activity-card-yellow h3 { color: var(--ink); }

/* ---------- Programma ---------- */
.timetable-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.optional-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 2px;
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.timetable td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}

.timetable tr:last-child td { border-bottom: none; }

.tt-time {
  font-family: var(--font-title);
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
  padding-right: 20px;
  color: var(--yellow);
}

/* ---------- Quote ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 32px auto 0;
}

@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 32px rgba(27, 58, 151, 0.2);
  border-color: var(--coral);
}

.pricing-card-featured {
  border-color: var(--magenta);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.pricing-card-featured:hover {
  transform: translateY(-8px) scale(1.07);
  border-color: var(--magenta);
}

.pricing-card h3 {
  color: var(--blue);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--coral);
}

/* ---------- Iscrizioni ---------- */
#iscrizioni .btn-form {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.step {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.2);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 12px;
}

.step p { margin: 0; font-size: 0.95rem; }

.doc-link {
  text-align: center;
  margin-top: 32px;
}

.doc-link a {
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo-img { height: 44px; width: auto; }

.footer-brand p { margin: 8px 0 0; opacity: 0.8; font-size: 1rem; }

.footer-contacts, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 700px) {
  .footer-contacts, .footer-social { flex-direction: row; gap: 20px; }
}

.footer-contacts a, .footer-social a {
  text-decoration: none;
  font-size: 1.05rem;
}
.footer-contacts a:hover, .footer-social a:hover { color: var(--yellow); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a { text-decoration: underline; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  display: block;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 400;
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Illustrazioni bambini ---------- */
.kid-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 5vw, 48px);
  margin-top: 40px;
}

.kid-figure {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
  transition: transform 0.25s ease;
}

.kid-figure:hover { transform: translateY(-6px) rotate(-4deg); }

.kid-figure-lg { width: 100px; }

@media (min-width: 640px) {
  .kid-figure { width: 92px; }
  .kid-figure-lg { width: 132px; }
}
