/* Residenza Althea — pagine interne
   Variazioni del master visual system, non copie della Home */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.35rem;
  font-size: var(--text-small);
  color: var(--taupe);
}

.crumbs a {
  color: var(--taupe);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--bronze);
}

.crumbs [aria-current="page"] { color: var(--charcoal); }

.page-hero {
  padding: var(--section-y) 0 3rem;
}

.page-hero h1 { max-width: 14ch; }

.page-lede {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: color-mix(in srgb, var(--charcoal) 80%, transparent);
}

.page-hero--forest {
  background: var(--forest);
  color: #D8D2C4;
  padding: var(--section-y) 0;
}

.page-hero--forest h1 { color: var(--ivory); }

.page-hero--forest .page-lede { color: #D8D2C4; }

.page-hero--forest .kicker { color: var(--sage); }

.page-hero--forest .crumbs,
.page-hero--forest .crumbs a { color: #C9C3B5; }

.page-hero--forest .crumbs [aria-current="page"] { color: var(--ivory); }

.page-hero--center {
  text-align: center;
  padding: var(--section-y) 0 3rem;
}

.page-hero--center h1,
.page-hero--center .page-lede,
.page-hero--center .crumbs {
  margin-inline: auto;
}

.page-hero--center .crumbs { justify-content: center; }

.page-hero--center h1 { max-width: 16ch; }

.section {
  padding: var(--section-y) 0;
}

.section--tight {
  padding: 4rem 0;
}

.section--ivory { background: var(--ivory-deep); }

.section--forest {
  background: var(--forest);
  color: #D8D2C4;
}

.section--forest h2,
.section--forest h3 { color: var(--ivory); }

.section--forest .kicker { color: var(--sage); }

.measure-copy { max-width: var(--measure); }

.measure-copy h2 { margin-bottom: 1.1rem; }

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: start;
  }

  .split--end { align-items: end; }

  .split--even { grid-template-columns: 1fr 1fr; }

  .split--reverse > :first-child { order: 2; }
  .split--reverse > :last-child { order: 1; }
}

.legal-note {
  max-width: 38rem;
  font-size: var(--text-small);
  color: var(--taupe);
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: 1.75rem;
}

/* Spazi: gallery-ready items */
.space-block {
  padding: 3rem 0;
}

.space-block:first-of-type { padding-top: 0; }
.space-block:last-of-type { padding-bottom: 3rem; }

.space-block h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin-bottom: 0.75rem;
}

.space-block p { max-width: 34rem; }

.space-media {
  margin: 0 0 1.15rem;
  width: 100%;
  min-width: 0;
}

.space-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 800px) {
  .space-block:has(.space-media) {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 3.5rem;
    align-items: start;
  }

  .space-block:has(.space-media) .space-media {
    grid-column: 1;
    margin: 0;
  }

  .space-block:has(.space-media) .space-copy {
    grid-column: 2;
    padding-top: 0.25rem;
  }

  .space-block:not(:has(.space-media)) {
    max-width: 34rem;
  }
}

/* Ammissione: passi */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  padding: 1.5rem 0;
}

.steps span {
  display: block;
  font-size: var(--text-kicker);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}

.steps h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  margin-bottom: 0.45rem;
}

.steps p {
  margin: 0;
  max-width: 36rem;
  color: color-mix(in srgb, var(--charcoal) 80%, transparent);
}

@media (min-width: 800px) {
  .steps li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }

  .steps span { margin-bottom: 0; }

  .steps h2,
  .steps p { grid-column: 2; }
}

.ask-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-list li {
  padding: 0.85rem 0;
  max-width: 32rem;
}

.ask-list li:first-child { padding-top: 0; }

/* Contatti */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.contact-map {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  background: var(--ivory-deep);
  min-height: 16rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.map-open {
  margin: 0.65rem 0 0;
}

.map-open a {
  font-size: 0.92rem;
  font-weight: 400;
}

.form {
  display: grid;
  gap: 1.15rem;
}

.form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
}

.form textarea { min-height: 8.5rem; resize: vertical; }

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-check input { width: auto; margin-top: 0.3rem; }

.form-check label {
  font-weight: 400;
  margin: 0;
  color: color-mix(in srgb, var(--charcoal) 82%, transparent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1.15rem 0;
  max-width: 32rem;
}

.form-status--ok { color: var(--olive); }

.form-status--err { color: #7A3B2E; }

/* Privacy */
.privacy-doc {
  max-width: 40rem;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.privacy-doc h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  margin: 2.25rem 0 0.75rem;
}

.privacy-doc h3 {
  margin: 1.35rem 0 0.45rem;
}

.privacy-doc ul { padding-left: 1.15rem; }

.privacy-meta {
  font-size: var(--text-small);
  color: var(--taupe);
  margin-bottom: 1.5rem;
}

.whatsapp-line {
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 0.45rem;
  width: max-content !important;
  white-space: nowrap;
}

.whatsapp-line svg {
  display: inline-block !important;
  width: 1.4rem !important;
  height: 1.4rem !important;
  max-width: 1.4rem !important;
  max-height: 1.4rem !important;
  flex: none !important;
  vertical-align: middle;
}

@media (min-width: 1080px) {
  .header-inner {
    display: flex;
    position: relative;
    justify-content: space-between;
  }

  .nav-desktop {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .header-actions {
    display: flex;
    margin-left: auto;
  }
}

/* 404 */
.error-page {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0;
  text-align: center;
}

.error-page-inner {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-page-logo {
  width: auto;
  height: 3.25rem;
  max-width: 10rem;
  object-fit: contain;
  margin-bottom: var(--space-4);
}

.error-page h1 {
  margin-bottom: var(--space-3);
}

.error-page-lede {
  max-width: 26rem;
  margin: 0 auto var(--space-4);
  color: color-mix(in srgb, var(--charcoal) 82%, transparent);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem var(--space-3);
}

/* Affiliazioni: ANASTE, Affidya */
.affiliazioni-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

@media (min-width: 800px) {
  .affiliazioni-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
  }
}

.affiliazione-mark {
  margin-bottom: var(--space-3);
}

.affiliazione-mark img {
  height: 2rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
}

.affiliazione h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.affiliazione p {
  max-width: 30rem;
  color: color-mix(in srgb, var(--charcoal) 80%, transparent);
}

.affidya-family-mark {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0 0.35rem -0.15rem 0;
  border-radius: 0.3rem;
  vertical-align: baseline;
}
