/* Pagina Eventi: blocco "la struttura" (alloggi, servizi, spazi, formati, posizione, contatto).
   Usa le variabili e i font definiti in tramonti-ecoglamping.css. */

.ev {
  position: relative;
  padding: 7rem 5%;
}

.ev-inner {
  position: relative;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.ev.is-light {
  background-color: var(--light-cream);
  background-image: url('../images/grunge-7.avif');
  background-position: 0 0;
  background-size: 1440px;
}

.ev.is-cream {
  background-color: #f0e2cb;
  background-image: url('../images/grunge-7.avif');
  background-position: 0 0;
  background-size: 1440px;
}

.ev.is-green {
  background-color: var(--green);
  color: var(--cream);
}

.ev.is-red {
  background-color: var(--red);
  color: #f3ede0;
  overflow: hidden;
}

.ev.is-red::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(206, 138, 57, .45), transparent 70%);
  pointer-events: none;
}

/* Tipografia */

.ev-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.ev-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background-color: currentColor;
  flex: none;
}

.ev.is-green .ev-eyebrow { color: var(--senape); }
.ev.is-red .ev-eyebrow { color: var(--yellow); }

.ev-title {
  margin: 0;
  font-family: Recoleta, sans-serif;
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 1.1;
  letter-spacing: -2.5px;
  color: var(--brown);
}

.ev-title .bold-span { font-weight: 600; }
.ev.is-green .ev-title { color: var(--cream); }
.ev.is-red .ev-title { color: #f3ede0; }

.ev-text {
  margin: 0;
  font-family: Nohemi, sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--brown);
}

.ev-text + .ev-text { margin-top: 1em; }
.ev-text strong { font-weight: 600; color: var(--red); }
.ev.is-green .ev-text { color: rgba(228, 214, 185, .88); }
.ev.is-red .ev-text { color: rgba(243, 237, 224, .92); }

.ev-note {
  margin: 0;
  font-family: Nohemi, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--light-brown);
}

.ev-head { margin-bottom: 48px; }

.ev-head.is-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}

.ev-lead {
  max-width: 720px;
  margin-top: 20px;
}

/* Intro: titolo a sinistra, testo a destra */

.ev-intro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

/* Foto con angoli arrotondati, come le altre foto del sito */

.ev-photo {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background-color: #1a1810;
}

.ev-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-photo.is-tall { min-height: 560px; }

.ev-photo.is-wide {
  aspect-ratio: 21 / 9;
  margin-bottom: 48px;
}

.ev-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 8px;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light-cream);
  background-color: rgba(78, 67, 53, .72);
}

/* Alloggi: foto + schede con i numeri */

.ev-alloggi {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
}

.ev-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: stretch;
}

.ev-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background-color: var(--light-cream);
}

.ev-card.is-span { grid-column: 1 / -1; }
.ev.is-light .ev-card { background-color: #f0e2cb; }
.ev-card.is-accent { background-color: var(--green); }
.ev-card .ev-note { margin-top: 10px; }

.ev-num {
  font-family: Thunder, sans-serif;
  font-weight: 900;
  font-size: 6rem;
  line-height: .85;
  letter-spacing: -.01em;
  color: var(--green);
}

.ev-num small {
  margin-left: .1em;
  vertical-align: .3em;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--light-brown);
}

.ev-card.is-accent .ev-num { color: var(--senape); }

.ev-label {
  margin-top: 18px;
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brown);
}

.ev-card.is-accent .ev-label { color: var(--cream); }
.ev-card.is-accent .ev-note { color: rgba(228, 214, 185, .8); }

/* Gallerie a 4 foto */

.ev-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.ev-gallery.is-flush { margin-top: 0; }

.ev-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background-color: #1a1810;
  aspect-ratio: 4 / 5;
}

.ev-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-gallery figure.is-plan { background-color: var(--light-cream); }

.ev-gallery figure.is-plan img {
  object-fit: contain;
  padding: 18px;
}

.ev-gallery figure.is-plan .ev-caption { background-color: var(--green); }

/* Servizi: i due numeri */

.ev-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin-bottom: 36px;
}

/* Spazi: griglia di riquadri con didascalia sovrapposta */

.ev-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.ev-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: #1a1810;
  aspect-ratio: 4 / 5;
}

.ev-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.ev-tile:hover img { transform: scale(1.03); }

.ev-tile-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(20, 15, 8, 0) 30%, rgba(20, 15, 8, .85) 100%);
}

.ev-tile-letter {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cream);
  opacity: .85;
}

.ev-tile-tag {
  margin-bottom: 8px;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--senape);
}

.ev-tile-title {
  margin: 0;
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: .95;
  text-transform: uppercase;
  color: var(--cream);
}

.ev-tile-sub {
  max-width: 34ch;
  margin: 6px 0 0;
  font-family: Nohemi, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(228, 214, 185, .85);
}

.ev-tile.span-4 { grid-column: span 4; aspect-ratio: 16 / 10; }
.ev-tile.span-3 { grid-column: span 3; aspect-ratio: 16 / 10; }
.ev-tile.span-2 { grid-column: span 2; }

/* Formati: le quattro schede "per chi" */

.ev-formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ev-format {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--light-cream);
}

.ev-format-photo {
  overflow: hidden;
  background-color: #1a1810;
  aspect-ratio: 4 / 3;
}

.ev-format-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}

.ev-format:hover .ev-format-photo img { transform: scale(1.05); }

.ev-format-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 26px;
}

.ev-format-kind {
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.ev-format-title {
  margin: 0;
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: .95;
  text-transform: uppercase;
  color: var(--brown);
}

/* Posizione: distanze e sentieri */

.ev-posizione {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.ev-distances li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(78, 67, 53, .3);
}

.ev-distances li:first-child { border-top: 1px dashed rgba(78, 67, 53, .3); }

.ev-time {
  font-family: Thunder, sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
}

.ev-time small {
  margin-left: .3em;
  vertical-align: .7em;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: .3em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.ev-place {
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brown);
}

.ev-by {
  font-family: Nohemi, sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.ev-trails {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.ev-trails li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--brown);
}

.ev-trails img {
  width: 24px;
  height: 24px;
  flex: none;
}

.ev-trails span {
  font-family: Nohemi, sans-serif;
  font-size: 14px;
  text-transform: none;
  color: var(--light-brown);
}

/* Stagione e contatto (sezione rossa) */

.ev-season {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(243, 237, 224, .25);
  font-family: Recoleta, sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  color: #f3ede0;
}

.ev-season p {
  margin: 0;
  max-width: 24ch;
}

.ev-season .bold-span { color: var(--yellow); }

.ev-months {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: Nohemi, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.ev-months i {
  display: inline-block;
  width: 64px;
  height: 1px;
  background-color: currentColor;
}

.ev-cta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
}

.ev-cta .ev-text { max-width: 44ch; }

.ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 8px;
  background-color: var(--light-cream);
  color: var(--red);
  font-family: Thunder, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.ev-btn:hover {
  background-color: var(--senape);
  color: #f3ede0;
  transform: translateY(-5px);
  box-shadow: 0 4px #0003;
}

.ev-mail {
  display: block;
  margin-top: 14px;
  font-family: Nohemi, sans-serif;
  font-size: 15px;
  letter-spacing: .03em;
  color: rgba(243, 237, 224, .75);
}

/* Comparsa allo scroll */

.ev-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.ev-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ev-reveal { opacity: 1; transform: none; transition: none; }
  .ev-tile img, .ev-format-photo img { transition: none; }
}

/* Responsive: stessi punti di rottura del resto del sito */

@media screen and (min-width: 1440px) {
  .ev-title { font-size: 4rem; }
}

@media screen and (max-width: 991px) {
  .ev { padding: 5rem 5%; }
  .ev-title { font-size: 2.75rem; }
  .ev-intro, .ev-head.is-split, .ev-posizione, .ev-cta { grid-template-columns: 1fr; gap: 32px; }
  .ev-alloggi { grid-template-columns: 1fr; }
  .ev-photo.is-tall { min-height: 0; aspect-ratio: 4 / 3; }
  .ev-tiles { grid-template-columns: repeat(2, 1fr); }
  .ev-tile.span-3, .ev-tile.span-2 { grid-column: span 1; aspect-ratio: 4 / 5; }
  .ev-tile.span-4 { grid-column: span 2; }
  .ev-formats { grid-template-columns: repeat(2, 1fr); }
  .ev-season { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media screen and (max-width: 767px) {
  .ev-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ev-numbers { grid-template-columns: 1fr; }
  .ev-num { font-size: 5rem; }
  .ev-photo.is-wide { aspect-ratio: 16 / 10; }
}

@media screen and (max-width: 479px) {
  .ev { padding: 4rem 5%; }
  .ev-title { font-size: 2rem; letter-spacing: -1px; }
  .ev-text { font-size: 1.1rem; }
  .ev-cards { grid-template-columns: 1fr; }
  .ev-card { min-height: 0; }
  .ev-tiles { grid-template-columns: 1fr; gap: 14px; }
  .ev-tile.span-4 { grid-column: span 1; }
  .ev-formats { grid-template-columns: 1fr; }
  .ev-distances li { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .ev-time { font-size: 2.5rem; }
  .ev-season { font-size: 1.6rem; }
}
