/* ============================================================
   NEWCOMERS – style.css
   Palette: libro Newcomers 2025, tono caldo/pastello
   Font: Georgia, serif – unico per tutto il sito
   Immagini: sempre quadrate (aspect-ratio: 1/1)
   ============================================================ */

/* ── Variabili ──────────────────────────────────────────── */

:root {
  --bg:           #FAF8F4;   /* sfondo principale caldo/panna */
  --bg-panel:     #EDE8E1;   /* sfondo pannelli immagine */
  --bg-dark:      #202F0B;   /* sfondo header/footer */
  --text:         #2C2C2C;   /* testo principale */
  --text-mid:     #7A7068;   /* testo secondario/didascalie */
  --border:       #E8E0D5;   /* bordi e divisori */
  --accent-beige: #C9B99A;   /* accento beige/cuoio */
  --accent-terra: #B8836F;   /* accento terracotta */
  --accent-slate: #8FA3B1;   /* accento grigio-blu */

  /* Bottoni / interazioni */
  --btn-primary:        #E8957A;   /* salmone – CTA principali */
  --btn-primary-hover:  #D4735A;
  --btn-secondary:      #E8B4B8;   /* rosa antico – secondari */
  --btn-secondary-hover:#D4939A;
  --btn-ghost:          transparent;
  --btn-ghost-border:   #C9B99A;
  --btn-ghost-hover:    #EDE8E1;

  /* Navigazione */
  --nav-hover:     #A8C5A0;   /* verde salvia – hover nav */
  --nav-active-bg: #2C2C2C;
  --nav-active-txt:#FAF8F4;

  --radius:  4px;
  --radius-lg: 8px;
  --shadow:  0 1px 4px rgba(0,0,0,0.08);
}

/* ── Reset ──────────────────────────────────────────────── */

*,*::before,*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Georgia Pro", serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a { color: inherit; }

/* ── Layout pagina ──────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Brand */

.brand {
  text-decoration: none;
  color: var(--bg);
  line-height: 1.2;
}

.brand__title {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand__subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

/* Nav */

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-pill {
  font-family: Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: transparent;
  color: rgba(250,248,244,0.84);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav-pill:hover {
  background: var(--nav-hover);
  color: var(--bg-dark);
  border-color: var(--nav-hover);
}

.nav-pill--active {
  background: var(--bg);
  color: var(--bg-dark);
  border-color: var(--bg);
  font-weight: bold;
}

/* Controlli header dx */

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Switch lingua */

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  overflow: hidden;
}

.lang-pill {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border: none;
  background: transparent;
  color: rgba(250,248,244,0.8);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-pill:hover        { background: rgba(255,255,255,0.12); }
.lang-pill--active      { background: var(--bg); color: var(--bg-dark); font-weight: bold; }

/* Toggle audio */

.icon-toggle {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: rgba(250,248,244,0.84);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.icon-toggle:hover { background: rgba(255,255,255,0.1); }

.icon-toggle__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(250,248,244,0.4);
  transition: background 0.2s;
}

.icon-toggle--on .icon-toggle__dot,
.icon-toggle[aria-pressed="true"] .icon-toggle__dot {
  background: var(--btn-primary);
}

/* ── Bottoni ────────────────────────────────────────────── */

.btn {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--btn-primary);
  color: #fff;
  border-color: var(--btn-primary);
}
.btn--primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.btn--secondary {
  background: var(--btn-secondary);
  color: var(--bg-dark);
  border-color: var(--btn-secondary);
}
.btn--secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--btn-secondary-hover);
}

.btn--ghost {
  background: var(--btn-ghost);
  color: var(--text);
  border-color: var(--btn-ghost-border);
}
.btn--ghost:hover { background: var(--btn-ghost-hover); }

/* ── Immagini quadrate ──────────────────────────────────── */

.sq-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.sq-img--contain {
  object-fit: contain;
  background: var(--bg-panel);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: rgba(250,248,244,0.82);
  padding: 1rem 1.5rem 1.2rem;
  font-size: 0.8rem;
  font-family: Georgia, serif;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__text { margin: 0; }

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}

.site-footer__email {
  color: var(--btn-secondary);
  text-decoration: none;
}
.site-footer__email:hover { text-decoration: underline; }

.site-footer__social {
  display: flex;
  gap: 1rem;
}
.site-footer__social a {
  color: rgba(250,248,244,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__social a:hover { color: var(--nav-hover); }

/* ── HOME – Hero ────────────────────────────────────────── */

.hero {
  padding: 2.5rem 1.5rem 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
}

.hero__title {
  font-size: 3rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hero__subtitle {
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 0.5rem;
  color: var(--text-mid);
}

.hero__description {
  font-size: 0.95rem;
  max-width: 38rem;
  margin: 0 0 1rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.hero__hint {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-mid);
}

/* ── HOME – Slider ──────────────────────────────────────── */

.experience-slider {
  padding: 1rem 1.5rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

/* Ogni slide: ritratto + lettera affiancati (entrambi quadrati) */

.exp-slide {
  display: none;
  gap: 1.2rem;
  align-items: flex-start;
}

.exp-slide--active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* col 1: ritratto | col 2: lettera | col 3: testo */
}

.exp-slide__portrait,
.exp-slide__letter {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}

.exp-slide__letter {
  object-fit: contain;
}

.exp-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.exp-slide__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0;
}

.exp-slide__title {
  font-size: 1.2rem;
  margin: 0.2rem 0 0;
}

.exp-slide__meta {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
  font-style: italic;
}

.exp-slide__theme {
  font-size: 0.92rem;
  color: var(--text);
}

.exp-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* Controlli slider */

.slider-controls {
  max-width: 1120px;
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: 1.5rem;
}

.exp-arrow {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: var(--shadow);
}

.exp-arrow:hover {
  background: var(--nav-hover);
  border-color: var(--nav-hover);
  color: var(--bg-dark);
}

.exp-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.exp-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--accent-beige);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.exp-dot--active { background: var(--btn-primary); border-color: var(--btn-primary); }

/* ── VOICES – Layout ────────────────────────────────────── */

.page-main--voices {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  height: calc(100vh - 56px); /* altezza piena meno header */
  overflow: hidden;
}

/* Pannello laterale */

.voices-panel {
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.voices-panel__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0;
}

.voices-panel__title {
  font-size: 1.4rem;
  margin: 0.2rem 0 0;
}

.voices-panel__description {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
}

.voices-panel__status-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0;
}

.voices-panel__status-value {
  font-size: 0.88rem;
  font-style: italic;
  margin: 0.1rem 0 0;
  color: var(--accent-terra);
}

.voices-panel__subtitle {
  font-size: 0.85rem;
  font-weight: bold;
  margin: 0.5rem 0 0.2rem;
  color: var(--text);
}

.voices-panel__legend {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: var(--text-mid);
}

.voices-panel__legend li { margin-bottom: 0.2rem; }

.voices-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.voices-panel__backlink {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: auto;
}

.voices-panel__backlink a {
  color: var(--accent-terra);
  text-decoration: none;
}
.voices-panel__backlink a:hover { text-decoration: underline; }

/* Canvas 3D */

.voices-canvas-section {
  position: relative;
  overflow: hidden;
}

.voices-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.voices-canvas-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.9rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-mid);
  pointer-events: none;
}

.voices-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  text-align: center;
  gap: 0.75rem;
}

.voices-fallback p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ── Modale storie ──────────────────────────────────────── */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.story-modal--open,
.story-modal[aria-hidden="false"] {
  display: block;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0.55);
}

.story-modal__dialog {
  position: relative;
  margin: 2rem auto;
  max-width: 1000px;
  max-height: calc(100vh - 4rem);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  font-size: 0.8rem;
  color: var(--text-mid);
  flex-shrink: 0;
}

.story-modal__index,
.story-modal__nav-hint { margin: 0; }

.story-modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

/* Pannello immagini: 3 quadrati impilati */

.story-modal__image-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.story-modal__figure { margin: 0; }

.story-modal__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.story-modal__image--letter {
  object-fit: contain;
}

.story-modal__caption {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-style: italic;
  margin-top: 0.2rem;
}

/* Pannello testo */

.story-modal__text-panel {
  padding: 1.1rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.story-modal__title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.story-modal__meta {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: italic;
  margin: 0;
}

.story-modal__excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.story-modal__note {
  font-size: 0.78rem;
  color: var(--text-mid);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin: 0;
}

.story-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ── ABOUT ──────────────────────────────────────────────── */

.page-main--about {
  padding: 2.5rem 1.5rem 3rem;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-inner h1 {
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.about-inner .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
}

.about-inner p {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  line-height: 1.75;
}

.about-inner h2 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
  color: var(--accent-terra);
}

/* ── INFO ───────────────────────────────────────────────── */

.page-main--info {
  padding: 2.5rem 1.5rem 3rem;
}

.info-inner {
  max-width: 640px;
  margin: 0 auto;
}

.info-inner h1 {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.info-inner .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.info-form label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text);
}

.info-form input,
.info-form textarea,
.info-form select {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}

.info-form input:focus,
.info-form textarea:focus,
.info-form select:focus {
  outline: none;
  border-color: var(--btn-primary);
}

.info-form textarea { min-height: 100px; resize: vertical; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .page-main--voices {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .voices-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .voices-canvas {
    min-height: 60vw;
  }

  .story-modal__content {
    grid-template-columns: 1fr;
  }

  .story-modal__image-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .story-modal__figure {
    flex: 1 1 calc(33% - 0.5rem);
    min-width: 80px;
  }
}

@media (max-width: 700px) {
  .site-header__inner { flex-wrap: wrap; gap: 0.5rem; }
  .site-header__nav { order: 3; width: 100%; overflow-x: auto; }

  .hero__title { font-size: 2rem; }

  .exp-slide--active {
    grid-template-columns: 1fr;
  }

  .story-modal__dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    border-radius: var(--radius);
  }

  .about-inner, .info-inner { max-width: none; }
}

/* ── ABOUT – nuova struttura a blocchi ─────────────────── */

.page-main--about {
  padding: 2.5rem 1.5rem 3rem;
}

.about-hero {
  max-width: 64rem;
  margin: 0 auto 1.8rem;
}

.about-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 0.5rem;
}

.about-title {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}

/* Griglia dei blocchi */

.about-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
}

.about-block {
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.about-block__title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  margin: 0 0 0.55rem;
}

.about-block__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 0.55rem;
}

.about-block__text:last-child {
  margin-bottom: 0;
}

/* Responsive About */

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── INFO – sezione due colonne + form ─────────────────── */

.page-main--info {
  padding: 2.5rem 1.5rem 3rem;
}

.info-section {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
}

/* Colonna testo + download */

.info-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.info-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.info-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

.info-downloads {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.info-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  margin: 0 0 0.6rem;
}

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

.download-item + .download-item {
  margin-top: 0.45rem;
}

.download-link {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 0.05rem;
  transition: color 0.15s, border-color 0.15s;
}

.download-link:hover {
  color: var(--accent-terra);
  border-bottom-color: var(--accent-terra);
}

/* Colonna form */

.info-form-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem 1.4rem;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.info-form-intro {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0 0 0.9rem;
}

/* Struttura form */

.info-form {
  margin-top: 0.4rem;
}

.form-row {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row--inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text);
}

/* Campi input */

.info-form input[type="text"],
.info-form input[type="email"],
.info-form textarea {
  font-family: Georgia, "Georgia Pro", serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.info-form input[type="text"]:focus,
.info-form input[type="email"]:focus,
.info-form textarea:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 1px rgba(232,149,122,0.25);
}

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

/* Checkbox e privacy */

.checkbox-label {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-mid);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin: 0.6rem 0 0.9rem;
}

/* Errori e stato form */

.form-error {
  font-size: 0.75rem;
  color: #b6453b;
  min-height: 0.9rem;
}

[aria-invalid="true"] {
  border-color: #b6453b !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.form-status {
  font-size: 0.8rem;
  min-height: 1rem;
  color: var(--text-mid);
}

.form-status--error {
  color: #b6453b;
}

.form-status--success {
  color: #2d7f4c;
}

/* Responsive Info */

@media (max-width: 900px) {
  .info-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row--inline {
    flex-direction: column;
    align-items: flex-start;
  }
}