/* ═══════════════════════════════════════════════
   WEAK SKATEBOARDS — home.css
   All home-page section styles
═══════════════════════════════════════════════ */

/* ── SECTIONS ── */
section {
  padding: 110px 0;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.8) 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(212,43,43,0.04) 79px, rgba(212,43,43,0.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(212,43,43,0.04) 79px, rgba(212,43,43,0.04) 80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  animation: heroFadeUp 1.2s cubic-bezier(.16,1,.3,1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@-webkit-keyframes heroFadeUp {
  from { opacity: 0; -webkit-transform: translateY(50px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    }
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 7px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 170px);
  line-height: 0.88;
  letter-spacing: -1px;
  color: var(--white);
}
.hero-title em { color: var(--red); font-style: normal; }

.hero-sub {
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--light);
  text-transform: uppercase;
  margin-top: 20px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--light);
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
  -webkit-animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}
@-webkit-keyframes scrollBounce {
  0%,100% { -webkit-transform: translateX(-50%) translateY(0); }
  50%      { -webkit-transform: translateX(-50%) translateY(10px); }
}

/* ── ABOUT ── */
#about { background: var(--black); }

.about-grid {
  display: -webkit-flex;
  display: flex;
  gap: 80px;
  align-items: center;
}
.about-text { flex: 1; }
.about-visual { flex: 0 0 42%; position: relative; }

.about-text p {
  color: var(--light);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 13px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 40px;
}
.stat-box {
  background: var(--gray);
  padding: 24px;
  border-left: 3px solid var(--red);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--light);
  text-transform: uppercase;
  margin-top: 4px;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--gray);
  border: 1px solid var(--border);
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
}
.about-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(212,43,43,0.1));
}

.about-year {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 110px;
  color: rgba(212,43,43,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ── EVENTS ── */
#events { background: var(--gray); }

.events-list {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--black);
  border-left: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  cursor: pointer;
}
.event-row:hover {
  border-color: var(--red);
  background: rgba(212,43,43,0.03);
  transform: translateX(8px);
  -webkit-transform: translateX(8px);
}
.event-date {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red);
}
.event-name {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.event-desc {
  font-size: 12px;
  color: var(--light);
  margin-top: 4px;
}
.event-arrow {
  font-size: 18px;
  color: var(--red);
  transition: transform var(--transition);
}
.event-row:hover .event-arrow {
  transform: translateX(10px);
  -webkit-transform: translateX(10px);
}

/* ── GALLERY ── */
#gallery { background: var(--black); }

.gallery-header {
  display: -webkit-flex;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-name {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--light);
  text-transform: uppercase;
  margin-bottom: 48px;
}

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

/* On tablets, 3 cols */
@media (max-width: 1100px) and (min-width: 601px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

.gallery-item {
  background: var(--gray);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--mid);
  aspect-ratio: 1;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  -webkit-transition: -webkit-transform 0.5s ease, filter 0.3s ease;
  filter: grayscale(15%);
  -webkit-filter: grayscale(15%);
  display: block;
  min-height: 120px;
}
.gallery-item:hover img {
  transform: scale(1.07);
  -webkit-transform: scale(1.07);
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212,43,43,0.55);
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-cta {
  text-align: center;
  margin-top: 32px;
}

/* ── NEWS (home snippet) ── */
#news { background: var(--gray); }

.news-list {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}
.news-row:hover { opacity: 0.7; }
.news-row:last-child { border-bottom: none; }

.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light);
}
.news-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-arrow {
  color: var(--red);
  font-size: 16px;
  transition: transform var(--transition);
}
.news-row:hover .news-arrow {
  transform: translateX(6px);
  -webkit-transform: translateX(6px);
}

.news-more {
  margin-top: 32px;
  text-align: right;
}
.news-more a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  transition: letter-spacing var(--transition);
}
.news-more a:hover { letter-spacing: 5px; }

/* ── SHOP ── */
#shop { background: var(--black); }

/* legacy fallback (if products list is empty) */
.shop-box {
  text-align: center;
  padding: 80px;
  border: 1px solid var(--border);
}
.shop-title {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 4px;
  color: var(--red);
}
.shop-box p {
  color: var(--light);
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* shop preview grid on homepage */
#shopPreviewGrid a {
  display: block;
  background: var(--gray);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
#shopPreviewGrid a:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
#shopTeaser {
  color: var(--light);
  font-size: 14px;
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── CONTACT ── */
#contact { background: var(--gray); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 8px;
  margin-top: 32px;
}
.contact-info h3:first-child { margin-top: 0; }

.contact-info p,
.contact-info a {
  color: var(--light);
  font-size: 13px;
  transition: color var(--transition);
}
.contact-info a:hover { color: var(--white); }

.social-links {
  display: -webkit-flex;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-link {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  border: 1px solid var(--border);
  padding: 7px 14px;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--red); color: var(--red); }

.contact-form {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ── RESPONSIVE HOME ── */
@media (max-width: 900px) {
  section { padding: 70px 0; }

  .about-grid         { flex-direction: column; gap: 40px; }
  .about-visual       { width: 100%; }
  .about-year         { font-size: 70px; }

  .gallery-grid       { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }

  .contact-grid       { grid-template-columns: 1fr; gap: 40px; }
  .form-row           { grid-template-columns: 1fr; }

  .event-row          { grid-template-columns: 100px 1fr auto; padding: 20px; gap: 12px; }
  .event-row:hover    { transform: translateX(4px); -webkit-transform: translateX(4px); }

  .shop-box           { padding: 48px 20px; }
  .shop-title         { font-size: 48px; }

  .news-row           { grid-template-columns: 1fr auto; gap: 12px; }
  .news-date          { display: none; }
}

@media (max-width: 600px) {
  .container          { padding: 0 20px; }
  .gallery-grid       { grid-template-columns: 1fr 1fr; gap: 2px; }
  .gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; aspect-ratio: 1; }
  .about-stats        { grid-template-columns: 1fr 1fr; }
}

/* ── EVENTS v2: con foto locandina, senza freccia ── */
.event-row {
  display: grid;
  grid-template-columns: 72px 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background var(--transition);
}
.event-row:hover { background: rgba(212,43,43,0.03); }

.event-poster-wrap {
  width: 64px; height: 64px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
}
.event-poster { width:100%; height:100%; object-fit:cover; display:none; }
.event-poster.loaded { display:block; }
.event-poster-ph { font-size:24px; color:var(--muted); }
.event-info { display:flex; flex-direction:column; gap:4px; }

@media (max-width:700px){
  .event-row { grid-template-columns: 48px 1fr; gap:12px; padding:16px 20px; }
  .event-poster-wrap { width:48px; height:48px; }
  .event-date { display:none; }
}
