/*
 * main.css — La Stazione · Homepage
 * Stili specifici di index.html.
 * Dipende da base.css per i token di design.
 */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(224, 123, 26, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(224, 123, 26, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.012) 60px,
    rgba(255, 255, 255, 0.012) 61px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px var(--sp-xl) 60px;
  gap: var(--sp-xl);
}

.hero-eyebrow {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--orange);
  display: block;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
  max-width: 380px;
  margin-bottom: 44px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.8s 0.65s ease both;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-logo-wrap img {
  width: clamp(260px, 35vw, 420px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(224, 123, 26, 0.3));
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  padding: 28px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeUp 0.8s 0.8s ease both;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-val {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ── CHI SIAMO ── */
.sec-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.about-details {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  gap: var(--sp-md);
}

.detail-key {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  flex-shrink: 0;
}

.detail-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.detail-val.closed {
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
}

/* ── STORIA / TIMELINE ── */
.sec-storia {
  background: var(--paper-alt);
}

.storia-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.storia-intro {
  position: sticky;
  top: 100px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 86px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item:first-child::before { top: 50%; }
.tl-item:last-child::before  { bottom: 50%; }

.tl-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
  text-align: right;
  padding-right: 28px;
  padding-top: 3px;
  line-height: 1.2;
  position: relative;
}

.tl-year em {
  display: block;
  font-style: normal;
  font-weight: 300;
  font-size: 0.6rem;
  color: var(--stone);
  letter-spacing: 0.1em;
}

.tl-year::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper-alt);
}

.tl-item--now .tl-year::after {
  background: var(--ink);
  width: 11px;
  height: 11px;
  right: -6px;
  top: 5px;
}

.tl-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.tl-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 200px;
  gap: 6px;
}

.g-item {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}

.g-item:first-child {
  grid-row: 1 / 3;
}

.g-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: sepia(10%) saturate(90%);
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(to top, rgba(26, 18, 8, 0.6), transparent);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 241, 232, 0.75);
  opacity: 0;
  transition: opacity 0.3s;
}

.g-item:hover .g-label {
  opacity: 1;
}

/* ── CTA WHATSAPP ── */
.sec-wa {
  background: var(--ink);
  border-bottom: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sec-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(224, 123, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wa-logo {
  font-size: 4rem;
  color: #25D366;
  display: block;
  text-align: center;
  margin-bottom: 32px;
  opacity: 0.9;
  position: relative;
}

.wa-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.wa-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
  letter-spacing: 0.08em;
  position: relative;
}

.wa-divider {
  width: 48px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 40px;
}

/* ── FORM PRENOTA ── */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}

.form-input,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color var(--ease);
  border-radius: 0;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-bottom-color: var(--orange);
}

.form-input::placeholder {
  color: var(--stone);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

/* ── RESPONSIVE HOMEPAGE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px var(--sp-md) 40px;
    gap: var(--sp-lg);
  }

  .hero-right    { display: none; }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px var(--sp-md);
  }

  .sec-about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .storia-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .storia-intro {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .g-item:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    height: 240px;
  }

  .g-item { height: 160px; }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 36px var(--sp-sm) 32px;
  }

  .hero-title  { font-size: 2.2rem; }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stat { padding: 16px; }

  .tl-item {
    grid-template-columns: 80px 1fr;
  }

  .tl-item::before { left: 75px; }
  .tl-year { padding-right: 16px; }
  .tl-year::after { right: -5px; }
}
