/*
  /$$$$$$  /$$   /$$ /$$      /$$  /$$$$$$  /$$$$$$$$ /$$$$$$$$ /$$   /$$
 /$$__  $$| $$  | $$| $$$    /$$$ /$$__  $$|__  $$__/| $$_____/| $$  / $$
| $$  \ $$| $$  | $$| $$$$  /$$$$| $$  \ $$   | $$   | $$      |  $$/ $$/
| $$$$$$$$| $$  | $$| $$ $$/$$ $$| $$$$$$$$   | $$   | $$$$$    \  $$$$/ 
| $$__  $$| $$  | $$| $$  $$$| $$| $$__  $$   | $$   | $$__/     >$$  $$ 
| $$  | $$| $$  | $$| $$\  $ | $$| $$  | $$   | $$   | $$       /$$/\  $$
| $$  | $$|  $$$$$$/| $$ \/  | $$| $$  | $$   | $$   | $$$$$$$$| $$  \ $$
|__/  |__/ \______/ |__/     |__/|__/  |__/   |__/   |________/|__/  |__/

                                  a u m a t e x
   ===========================================================

   Project: Uncovered Rome
   File: format.css
   Created: 2025-10-23
   -----------------------------------------------------------
   PURPOSE:
   Gestisce il layout dedicato alla pagina Format: hero parallax,
   gallerie fotografiche e box archivio con effetti coerenti.

   ===========================================================
*/

@import url('variables.css');

/* Hero parallax per la pagina format */
.hero-format {
  min-height: clamp(42vh, 52vh, 60vh);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(2rem, 6vh, 3.5rem);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--colore-2);
  isolation: isolate;
}

.hero-format::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  z-index: -1;
}

.hero-format .overlay {
  width: min(960px, 92%);
  text-align: center;
  display: grid;
  gap: 1.2rem;
  animation: var(--anim-rise);
}

.hero-format h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero-format .overlay p {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.75;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

/* Wrapper principale per testi e blocchi */
.format-content .container {
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(1rem, 3vw, 3rem);
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

.format-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--colore-3);
  text-align: justify;
}

.format-content p strong {
  color: var(--colore-1);
  font-weight: 700;
}

.format-content p + p {
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

/* Gallerie responsive per immagini di supporto */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.image-gallery img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: var(--fx-transition-base);
  transform-origin: center;
}

.image-gallery img:hover {
  transform: scale(var(--fx-pop-scale));
  filter: saturate(1.05);
}

/* Box di approfondimento con effetto glass */
.archivio-box {
  margin: clamp(2rem, 6vw, 3.5rem) auto;
  padding: clamp(1.8rem, 4vw, 2.5rem);
  max-width: 780px;
  border-radius: 0;
  background: var(--colore-2);
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.archivio-box strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--colore-1);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.archivio-testo {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--colore-7);
}

@media (max-width: 900px) {
  .hero-format {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero-format {
    min-height: 38vh;
  }
}
