@import url("style-v17.css");

/* Versione 25: sistema tipografico uniforme, incorporato e senza servizi esterni. */
@font-face {
  font-family: "Tempio Display";
  src: url("../fonts/tempio-display-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tempio Display";
  src: url("../fonts/tempio-display-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tempio Sans";
  src: url("../fonts/tempio-sans-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tempio Sans";
  src: url("../fonts/tempio-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --serif: "Tempio Display", Georgia, "Times New Roman", serif;
  --sans: "Tempio Sans", "Segoe UI", Arial, sans-serif;
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .25vw + .95rem, 1.075rem);
  line-height: 1.7;
}

h1,
h2,
h3,
.lead,
.content-aside,
.serif {
  font-family: var(--serif);
}

.nav-link,
.header-cta,
.button,
.eyebrow,
.coming-badge,
.footer-title,
.language-switcher,
button,
input,
textarea,
select {
  font-family: var(--sans);
}

.prose > p,
.team-bio > p,
.coming-note,
.survey-panel > p {
  line-height: 1.75;
}

/* Pulsante del sondaggio subito visibile nella prima schermata della home. */
.hero-survey-action {
  display: flex;
  margin: 0 0 .9rem;
}

.hero-survey-action .button {
  min-width: min(100%, 250px);
  box-shadow: 0 12px 28px rgba(82, 30, 98, .18);
}

h1,
h2,
h3 {
  text-rendering: optimizeLegibility;
}

strong,
b {
  font-weight: 700;
}

/* Versione 23: la pagina Custodi non dipende dalle animazioni per essere visibile. */
.custodi-body [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Versione 22: contrasto rinforzato senza rinunciare all'immagine di sfondo. */
@media (min-width: 761px) {
  .coming-page {
    background:
      linear-gradient(90deg,
        rgba(251,246,239,.99) 0%,
        rgba(251,246,239,.96) 42%,
        rgba(251,246,239,.84) 70%,
        rgba(251,246,239,.48) 100%),
      url("../images/hero-tempio.webp") 64% center/cover no-repeat;
  }
}

.coming-panel .coming-badge {
  display: table;
  margin-right: auto;
  margin-bottom: 1.15rem;
  margin-left: auto;
}

.coming-panel .eyebrow {
  margin-bottom: 1.15rem;
}

.coming-panel h1,
.coming-panel .lead {
  text-shadow: 0 1px 2px rgba(255,255,255,.9);
}

/* Versione 21: centratura completa della pagina Percorsi e footer riequilibrato. */

.coming-page .container {
  display: flex;
  justify-content: center;
}

.coming-panel {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.coming-panel .eyebrow {
  justify-content: center;
  text-align: center;
}

.coming-panel .lead {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  text-justify: auto;
}

.coming-note {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.coming-panel .hero-actions {
  justify-content: center;
}

/* La frase del footer non resta isolata in basso e anche la chiusura e centrata. */
.footer-brand img {
  width: min(160px, 100%);
  margin-bottom: .5rem;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
}

.footer-bottom {
  justify-content: center;
  margin-top: 1.5rem;
  text-align: center;
}

/* Versione 20: rifiniture finali di allineamento e leggibilita. */

/* Il pulsante conclusivo della pagina Progetto e centrato nel contenitore. */
.project-page .project-follow-button {
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

/* Evita sillabazioni automatiche e spaziature innaturali su desktop. */
.project-page .prose > p,
.coming-panel .lead {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

@media (min-width: 761px) {
  .coming-panel {
    width: min(100%, 820px);
    max-width: 820px;
  }

  .coming-panel h1 {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(3.5rem, 5.7vw, 5.8rem);
    line-height: .96;
    text-align: center;
  }

  .coming-panel .lead {
    text-align: center;
    text-justify: auto;
  }
}

/* Versione 19: biografie, pagina progetto e richiamo dorato. */

.temple-entry-cta {
  color: var(--gold-light);
}

.project-page .content-grid {
  grid-template-columns: 1fr;
  max-width: 1000px;
  gap: 0;
}

.project-page .prose {
  width: 100%;
}

.project-page .content-aside {
  max-width: 790px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.project-page .prose h2:first-of-type {
  margin-top: 0;
}

.team-card-giuliana .team-portrait img {
  object-position: 50% 0;
}

@media (max-width: 760px) {
  .hero-survey-action {
    justify-content: center;
  }

  .hero-survey-action .button {
    width: min(100%, 320px);
  }
  .project-page .content-aside {
    margin-bottom: 2rem;
  }
}
