/* Nido Famiglia Primi Passi — foglio di stile
   Concept: "la scia di Tina". Fasce pastello con bordi ondulati come il prato del logo,
   foto in forme morbide a sasso, una lumachina che attraversa lentamente l'apertura. */

:root {
  /* colore — preso dal logo */
  --paper: #FFFAF4;
  --ink: #5A4A41;
  --ink-soft: #7E6D63;
  --rose: #D98B7C;
  --rose-deep: #B4614F;
  --sage: #9AAE7E;
  --sage-deep: #637A4A;
  --peach: #F4D9B8;
  --sky: #A9C6DC;
  --sky-deep: #4F7A99;
  --blush: #FBE9E3;
  --mint: #EDF2E3;
  --cloud: #E8F1F7;
  --butter: #FFF2D6;
  --line: #EADFD3;
  --white: #FFFFFF;

  /* tipografia */
  --f-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-hand: "Mali", "Comic Neue", "Segoe Print", cursive;
  --f-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.8rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);

  --radius: 28px;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --shadow: 0 18px 40px -22px rgba(120, 80, 60, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; }
.prose { display: grid; gap: 1em; max-width: 62ch; }
.hand { font-family: var(--f-hand); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- etichette e bottoni ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-hand);
  font-size: var(--step-1);
  color: var(--rose-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 10px;
  background: radial-gradient(circle, var(--rose) 2.5px, transparent 3px) 0 50% / 9px 10px repeat-x;
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: var(--white); box-shadow: 0 10px 22px -12px var(--rose-deep); }
.btn-primary:hover { background: var(--rose-deep); color: var(--white); }
.btn-ghost { border-color: var(--sage); color: var(--sage-deep); background: var(--white); }
.btn-ghost:hover { background: var(--mint); color: var(--sage-deep); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 74px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.brand-text b span:first-child { color: var(--sage-deep); }
.brand-text b span:last-child { color: var(--rose); }
.brand-text small { font-family: var(--f-display); letter-spacing: .32em; font-size: .72rem; color: var(--ink-soft); margin-top: 3px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-display); font-weight: 600; font-size: 1.04rem;
  color: var(--ink); text-decoration: none;
  padding: .45em .9em; border-radius: 999px;
}
.nav a:hover { background: var(--blush); }
.nav a[aria-current="page"] { background: var(--mint); color: var(--sage-deep); }
.nav .btn { margin-left: 8px; padding: .55em 1.2em; }
.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    padding: 12px var(--gutter-r) 20px var(--gutter);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(90, 70, 60, .4);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: .75em 1em; font-size: 1.15rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand img { width: 60px; }
}

/* ---------- onde tra le fasce ---------- */
.band { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.band-blush { background: var(--blush); }
.band-mint { background: var(--mint); }
.band-cloud { background: var(--cloud); }
.band-butter { background: var(--butter); }
.wave { display: block; width: 100%; height: clamp(26px, 4vw, 54px); }
.wave path { fill: currentColor; }
.wave-blush { color: var(--blush); }
.wave-mint { color: var(--mint); }
.wave-cloud { color: var(--cloud); }
.wave-butter { color: var(--butter); }
.wave-paper { color: var(--paper); }
.wave + .band, .band + .wave { margin-top: -1px; }

/* ---------- hero home ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) 0; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 span { color: var(--rose); }
.hero .tagline { font-family: var(--f-hand); font-size: var(--step-2); color: var(--sage-deep); line-height: 1.3; }
.hero .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; line-height: 1.55; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo .pebble { aspect-ratio: 1 / 1; }
.hero-photo .sticker {
  position: absolute; left: -6%; bottom: -4%; width: 44%;
  background: var(--white); border-radius: 50%; padding: 6% 4% 8%;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.hero-photo .bubble {
  position: absolute; right: -2%; top: 6%;
  background: var(--butter); color: var(--ink);
  font-family: var(--f-hand); font-size: var(--step-0); line-height: 1.3;
  padding: .8em 1.1em; border-radius: 22px 22px 22px 4px;
  box-shadow: var(--shadow); max-width: 15ch; transform: rotate(3deg);
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* scia di Tina */
.trail { position: relative; height: 110px; margin-top: clamp(24px, 4vw, 48px); overflow: hidden; }
.trail svg.ground { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 40px; }
.trail .snail {
  position: absolute; bottom: 30px; left: 0; width: 120px;
  animation: crawl 60s linear infinite;
}
.trail .snail img { animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes crawl { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 20px)); } }
@keyframes wobble { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.05) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) {
  .trail .snail { animation: none; left: 12%; }
  .trail .snail img { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card, .gallery a img { transition: none !important; }
}

/* ---------- forme a sasso per le foto ---------- */
.pebble { overflow: hidden; border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; box-shadow: var(--shadow); background: var(--peach); max-width: 100%; }
.pebble img { width: 100%; height: 100%; object-fit: cover; }
.pebble.alt { border-radius: 44% 56% 40% 60% / 58% 44% 56% 42%; }
.pebble.alt2 { border-radius: 36px 120px 36px 120px; }

/* ---------- carta d'identità ---------- */
.facts { margin-top: -6px; }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.facts li {
  background: var(--white); border-radius: 22px; padding: 20px 20px 18px;
  border: 1.5px dashed var(--line);
  display: grid; gap: 2px; align-content: start;
}
.facts .num { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts li:nth-child(1) .num { color: var(--rose); }
.facts li:nth-child(2) .num { color: var(--sage-deep); }
.facts li:nth-child(3) .num { color: var(--sky-deep); }
.facts li:nth-child(4) .num { color: #B98A4E; }
.facts .lbl { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 820px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- split testo / foto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
.split .copy { display: grid; gap: 20px; }
.split .pebble { aspect-ratio: 4 / 5; }
.split .pebble.wide { aspect-ratio: 5 / 4; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split .pebble { max-width: 440px; width: 100%; margin-inline: auto; }
}

.quote {
  font-family: var(--f-hand); font-size: var(--step-1); line-height: 1.5;
  color: var(--ink);
  padding: 18px 22px 18px 56px; position: relative;
  background: var(--white); border-radius: 22px;
  max-width: 52ch;
}
.quote::before {
  content: "“"; position: absolute; left: 16px; top: -2px;
  font-family: var(--f-display); font-size: 3.4rem; color: var(--rose); line-height: 1;
}
.band-blush .quote, .band-mint .quote, .band-cloud .quote, .band-butter .quote { background: var(--paper); }

/* ---------- intestazioni di sezione ---------- */
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }

/* ---------- card dei tre pilastri ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px 26px;
  display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto;
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card .icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.card .icon svg { width: 34px; height: 34px; }
.card p { color: var(--ink-soft); }
.card .more { font-family: var(--f-display); font-weight: 600; color: var(--rose-deep); }
.tone-rose .icon { background: var(--blush); color: var(--rose-deep); }
.tone-sage .icon { background: var(--mint); color: var(--sage-deep); }
.tone-sky .icon { background: var(--cloud); color: var(--sky-deep); }
.tone-butter .icon { background: var(--butter); color: #A9783B; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Tina ---------- */
.tina-box { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tina-box > * { min-width: 0; }
.tina-box .copy { display: grid; gap: 18px; }
.tina-box .tina-mark { width: min(300px, 70%); }
.tina-box h2 { color: var(--rose-deep); }
.tina-box .motto { font-family: var(--f-hand); font-size: var(--step-1); color: var(--sage-deep); line-height: 1.45; }
.tina-box .pebble { aspect-ratio: 4 / 5; max-width: 440px; justify-self: center; width: 100%; }
@media (max-width: 820px) { .tina-box { grid-template-columns: 1fr; } }

/* ---------- galleria ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery a {
  display: block; margin-bottom: 16px; break-inside: avoid;
  border-radius: 24px; overflow: hidden; position: relative; background: var(--peach);
}
.gallery a img { width: 100%; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink);
  font-family: var(--f-hand); font-size: .95rem; padding: .3em .8em; border-radius: 999px;
}
.gallery-more { margin-top: 28px; display: flex; justify-content: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(60, 45, 38, .88);
  display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); width: auto; border-radius: 20px; }
.lightbox figcaption { color: var(--paper); font-family: var(--f-hand); font-size: 1.1rem; text-align: center; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: none; } }

/* ---------- CTA ---------- */
.cta {
  background: var(--white); border-radius: 40px; padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta > * { min-width: 0; }
.cta .copy { display: grid; gap: 18px; }
.cta .copy p { color: var(--ink-soft); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.info-list .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list li:nth-child(4n+1) .ic { background: var(--blush); color: var(--rose-deep); }
.info-list li:nth-child(4n+2) .ic { background: var(--mint); color: var(--sage-deep); }
.info-list li:nth-child(4n+3) .ic { background: var(--cloud); color: var(--sky-deep); }
.info-list li:nth-child(4n+4) .ic { background: var(--butter); color: #A9783B; }
.info-list strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.info-list span, .info-list a { color: var(--ink-soft); font-size: var(--step--1); overflow-wrap: anywhere; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- testata pagine interne ---------- */
.page-hero { padding-block: clamp(44px, 7vw, 90px) clamp(36px, 5vw, 64px); background: var(--blush); position: relative; }
.page-hero.mint { background: var(--mint); }
.page-hero.cloud { background: var(--cloud); }
.page-hero.butter { background: var(--butter); }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.page-hero .copy { display: grid; gap: 16px; min-width: 0; }
.page-hero .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; line-height: 1.55; }
.page-hero .deco { justify-self: end; width: min(320px, 100%); }
@media (max-width: 820px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .deco { justify-self: start; width: 200px; }
}
.crumbs { font-size: var(--step--1); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* ---------- principi ---------- */
.principles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.principles .card { grid-column: span 2; grid-template-rows: auto auto 1fr; }
.principles .card:nth-child(4) { grid-column: 2 / span 2; }
.principles .card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .principles .card, .principles .card:nth-child(4), .principles .card:nth-child(5) { grid-column: auto; }
}

/* ---------- équipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.role .tag { justify-self: start; font-family: var(--f-hand); font-size: .95rem; padding: .2em .8em; border-radius: 999px; background: var(--mint); color: var(--sage-deep); }
.role p { color: var(--ink-soft); }
.ratio {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  background: var(--white); border-radius: var(--radius); padding: 22px 28px;
}
.ratio .big { font-family: var(--f-display); font-weight: 700; font-size: var(--step-4); color: var(--rose); line-height: 1; font-variant-numeric: tabular-nums; }
.ratio p { max-width: 50ch; color: var(--ink-soft); }
.ratio .dots { display: flex; gap: 8px; align-items: flex-end; }
.ratio .dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--peach); }
.ratio .dots i:first-child { width: 34px; height: 34px; background: var(--sage); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- famiglie ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > * { min-width: 0; }
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.panel h3 { font-size: var(--step-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.ticks li::before {
  content: ""; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks.rose li::before { background-color: var(--blush); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B4614F'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.ticks b { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; display: block; line-height: 1.35; }
.ticks span { color: var(--ink-soft); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.contact-card .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card p { color: var(--ink-soft); }
.contact-card .value { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
a.value:hover { color: var(--rose-deep); }
.contact-card.tone-rose .ic { background: var(--blush); color: var(--rose-deep); }
.contact-card.tone-sage .ic { background: var(--mint); color: var(--sage-deep); }
.contact-card.tone-sky .ic { background: var(--cloud); color: var(--sky-deep); }
.contact-card.tone-butter .ic { background: var(--butter); color: #A9783B; }
.contact-card .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.week div { background: var(--mint); border-radius: 14px; text-align: center; padding: 8px 2px; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--sage-deep); line-height: 1.2; }
.week div small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .72rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--mint); padding-block: 56px 28px; }
.site-footer .wrap { display: grid; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-logo { width: 240px; }
.site-footer h4 { font-size: 1.15rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--rose-deep); text-decoration: underline; }
.site-footer p, .site-footer li { color: var(--ink-soft); font-size: var(--step--1); overflow-wrap: anywhere; }
.foot-bottom { border-top: 1.5px dashed color-mix(in srgb, var(--sage) 50%, transparent); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; }

/* ---------- pagine legali ---------- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); background: var(--white); border-radius: 22px; padding: 22px; border: 1.5px dashed var(--line); }
.toc-title { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: var(--step--1); }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--rose-deep); text-decoration: underline; }
.legal-toc .updated { margin-top: 14px; font-size: .82rem; color: var(--ink-soft); }
.legal { max-width: 72ch; display: grid; gap: 40px; }
.legal section { display: grid; gap: 14px; scroll-margin-top: 100px; }
.legal h2 { font-size: var(--step-2); }
.legal h3 { font-size: 1.12rem; margin-top: 6px; }
.legal ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal p, .legal li { color: var(--ink); }
.legal-summary { background: var(--mint); border-radius: 22px; padding: 22px 26px; }
.legal-summary p:last-child { font-size: var(--step-1); line-height: 1.55; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1.5px solid var(--line); background: var(--white); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: var(--step--1); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-family: var(--f-display); font-weight: 600; background: var(--butter); font-size: 1rem; }
.table-wrap tr:last-child td { border-bottom: 0; }
.foot-legal a { color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
