/* =========================================
   SECTIONS.CSS — Stili specifici per sezione
   Giuseppe Arena — Luxury & Wine Brand Architect
   ========================================= */

/* -----------------------------------------
   HERO
   ----------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%; /* Extra height per parallax */
  object-fit: cover;
  /* La min-height inline è solo per il placeholder */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.65) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(26, 26, 26, 0.75) 100%
  );
  z-index: 1;
}

/* Nasconde icona e testo del placeholder quando è lo sfondo hero:
   non servono con l'overlay sopra */
.hero__bg.img-placeholder svg,
.hero__bg.img-placeholder span {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 100px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-lg);
  display: block;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 300;
  line-height: var(--leading-tight);
  color: var(--color-background);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: var(--leading-body);
  color: rgba(250, 250, 248, 0.8);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

/* Mobile: riduce padding e font hero per 320-375px */
@media (max-width: 480px) {
  .hero__content {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 80px;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
  }

  /* CTA buttons in colonna su schermi piccoli */
  .hero .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .cta-group .btn-secondary,
  .hero .cta-group .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* -----------------------------------------
   STATEMENT — Chi è Giuseppe
   ----------------------------------------- */
.statement-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--space-xl);
  align-items: center;
}

.statement__p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.statement__signature {
  margin-top: var(--space-lg);
}

.statement__image-wrapper {
  position: relative;
}

.statement__image-frame {
  position: relative;
}

/* Effetto frame editoriale: bordo offset */
.statement__image-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  right: -12px;
  bottom: -12px;
  left: 12px;
  border: 1px solid var(--color-accent);
  z-index: 0;
  pointer-events: none;
}

/* Su mobile il frame offset destro verrebbe tagliato:
   lo disabilita e usa un bordo semplice */
@media (max-width: 767px) {
  .statement__image-frame::before {
    display: none;
  }
}

.statement__image-frame > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .statement-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .statement__image-wrapper {
    order: -1;
  }
}

/* -----------------------------------------
   PROGETTI FEATURED — layout asimmetrico
   ----------------------------------------- */
.project-featured {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.project-featured--left {
  grid-template-columns: 60fr 40fr;
}

.project-featured--right {
  grid-template-columns: 40fr 60fr;
}

.project-featured__image {
  overflow: hidden;
}

.project-featured__title {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 300;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin: var(--space-sm) 0;
}

.project-featured__subtitle {
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.project-featured__text {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.project-featured__results {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.project-featured__results li {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  line-height: var(--leading-body);
}

.project-featured__results li:first-child {
  border-top: 1px solid var(--color-border);
}

/* Grid progetti secondari */
.projects-grid {
  padding-top: var(--space-lg);
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-item__overlay,
.project-item:focus-within .project-item__overlay {
  opacity: 1;
}

.project-item__info {
  padding: var(--space-md) 0;
}

.project-item__title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-top: 8px;
}

@media (max-width: 767px) {
  .project-featured--left,
  .project-featured--right {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   NUMERI — sezione social proof
   ----------------------------------------- */
.numeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.numero-item {
  padding: var(--space-lg) var(--space-sm);
}

.numero-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
}

.numero-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.7);
  line-height: var(--leading-body);
}

.numeri-quote {
  border: 1px solid var(--color-accent);
  padding: 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.numeri-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--color-background);
  margin-bottom: var(--space-md);
}

.numeri-quote__footer cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-light);
}

@media (max-width: 767px) {
  .numeri-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .numero-item {
    padding: var(--space-md) var(--space-xs);
  }

  /* Riduce il font del numero per evitare overflow a 320px */
  .numero-value {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  /* Riduce letter-spacing sui label per stare nella cella a 2 col */
  .numero-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    word-break: break-word;
    hyphens: auto;
  }

  .numeri-quote {
    padding: var(--space-md);
  }

  .numeri-quote__text {
    font-size: 1.3rem;
  }
}

/* -----------------------------------------
   CTA FINALE
   ----------------------------------------- */
.cta-finale-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-finale__title {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.cta-finale__text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* Sezione collaborazioni: isola il marquee dal layout del body */
#collaborazioni {
  overflow-x: hidden;
}

/* -----------------------------------------
   BLOG PAGE — layout
   ----------------------------------------- */
.blog-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: var(--color-surface);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.blog-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 1023px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .blog-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   CONTATTI PAGE — layout
   ----------------------------------------- */
.contatti-hero {
  padding: calc(var(--nav-height) + 60px) 0 0;
}

.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-xl) 0;
}

@media (max-width: 767px) {
  .contatti-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}
