:root {
  --colore-titolo: #FFF8ED;
  --colore-sottotitolo: #FFF8ED;
  --colore-sommario: #FFF8ED;
  --colore-bordo-scritte: #004225;
  --spessore-bordo-titolo: 8px;
  --spessore-bordo-sottotitolo: 6px;
  --spessore-bordo-sommario: 5px;

  --font-titolo: "Libre Baskerville", serif;
  --font-sottotitolo: "Libre Baskerville", serif;
  --font-sommario: "Libre Baskerville", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: #183326;
  background-image:
    linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 8%)),
    url("./IMG/Sfondo_Foglie_1.webp");
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

main {
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.schermo {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.cornice {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: calc(150px - clamp(.4rem, 1.5vh, 1rem));
  padding-inline: 1rem;
}

.dedica-testo {
  position: relative;
  width: min(100%, 1100px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgb(0 66 37 / 24%);
  border-radius: 8px;
  background-color: #fff8ed;
  color: #004225;
  font-family: var(--font-sommario);
  font-size: clamp(18px, 1.5vw, 26px);
  font-style: normal;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 14px 40px rgb(0 0 0 / 24%);
}

.dedica-testo p {
  margin: 0 0 1em;
}

.dedica-testo > p:last-of-type {
  margin-bottom: 0;
}

.firma-dedica {
  display: block;
  width: clamp(150px, 24vw, 250px);
  max-width: 100%;
  height: auto;
  margin: clamp(.5rem, 1.5vw, 1rem) 0 0 auto;
}

.finale-contenuto {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 150px;
}

.immagine-finale {
  display: block;
  width: min(100%, 52svh, 650px);
  height: auto;
  border-radius: 6px;
}

.testo-finale {
  margin: clamp(1.25rem, 3vw, 2.5rem) 0 0;
  color: #004225;
  font-family: var(--font-sommario);
  font-size: clamp(1.25rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.testi {
  transform: translateY(clamp(20px, 4vh, 48px));
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(.4rem, 1.5vh, 1rem);
  padding: clamp(1.25rem, 5vw, 4rem);
  padding-top: 300px;
  text-align: center;
  font-style: italic;
}

.testi > div {
  width: min(100%, 56rem);
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgb(0 0 0 / 55%);
  paint-order: stroke fill;
}

.testi > .titolo {
  width: max-content;
  max-width: 100%;
}

.testi > .sottotitolo,
.testi > .sommario {
  width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
}

.titolo {
  position: relative;
  top: clamp(-3rem, -4vh, -1rem);
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 1.15em;
  color: var(--colore-titolo);
  -webkit-text-stroke: var(--spessore-bordo-titolo) var(--colore-bordo-scritte);
  font-family: var(--font-titolo);
  font-size: 130px;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.2;
  font-style: italic;
}

.sottotitolo {
  min-height: 1.5em;
  color: var(--colore-sottotitolo);
  -webkit-text-stroke: var(--spessore-bordo-sottotitolo) var(--colore-bordo-scritte);
  font-family: var(--font-sottotitolo);
  font-size: 80px;
  font-weight: 600;
  line-height: 1.3;
  font-style: italic;
}

.sommario {
  min-height: 3em;
  color: var(--colore-sommario);
  -webkit-text-stroke: var(--spessore-bordo-sommario) var(--colore-bordo-scritte);
  font-family: var(--font-sommario);
  font-size: 50px;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 1700px) {
  .titolo { font-size: 100px; }
  .sottotitolo { font-size: 36px; }
  .sommario { font-size: 22px; }
}

@media (max-width: 1400px) {
  .titolo { font-size: 80px; }
  .sottotitolo { font-size: 32px; }
  .sommario { font-size: 21px; }
}

@media (max-width: 1200px) {
  .titolo { font-size: 64px; }
  .sottotitolo { font-size: 28px; }
  .sommario { font-size: 20px; }
}

@media (max-width: 1024px) {
  .titolo { font-size: 50px; }
  .sottotitolo { font-size: 26px; }
  .sommario { font-size: 19px; }
}

@media (max-width: 768px) {
  .titolo { font-size: 36px; }
  .sottotitolo { font-size: 24px; }
  .sommario { font-size: 18px; }
}

@media (max-width: 600px) {
  .titolo { font-size: 26px; }
  .sottotitolo { font-size: 21px; }
  .sommario { font-size: 17px; }
}

@media (max-width: 380px) {
  .titolo { font-size: 18px; }
  .sottotitolo { font-size: 19px; }
  .sommario { font-size: 16px; }
}

@media (max-width: 600px) {
  .testi > .sommario {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(14px, 4.4vw, 17px);
    line-height: 1.35;
    text-wrap: balance;
  }
}




