/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gold: #E8A020;
  --gray: #4A4A4A;
  --light-gray: #F5F5F5;
  --dark-gray: #1A1A1A;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo span { color: var(--white); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 2rem;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: all 0.3s;
}

.btn-secondary:hover { color: var(--gold); }

/* ============================================
   SECTION COMUNE
   ============================================ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* ============================================
   NUMBERS SECTION
   ============================================ */
.numbers-section {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.numbers-section .section-title { color: var(--white); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.number-card {
  padding: 2rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.number-card:first-child { border-left: none; }

.number-value {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.number-unit {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin: 0.3rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.number-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   PROJECT SECTION
   ============================================ */
.project-section {
  padding: 8rem 0;
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.project-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.project-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-text .btn-secondary { margin-top: 1.5rem; }

.project-image img {
  height: 450px;
  object-fit: cover;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-section {
  padding: 8rem 0;
  background: var(--light-gray);
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.timeline-year {
  min-width: 80px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  padding-top: 0.2rem;
}

.timeline-content {
  flex: 1;
  padding-left: 2rem;
  border-left: 3px solid var(--gold);
}

.timeline-content h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: 8rem 0;
  background: var(--white);
}

.news-section .section-title,
.news-section .section-tag { text-align: center; display: block; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover img { transform: scale(1.05); }

.news-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
}

.news-body { padding: 1.5rem; }

.news-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-body h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin: 0.5rem 0 0.8rem;
  line-height: 1.4;
}

.news-body p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s;
}

.news-link:hover { color: var(--gold); }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 8rem 0;
  background: var(--dark-gray);
  color: var(--white);
}

.faq-section .section-title,
.faq-section .section-tag { text-align: center; display: block; }
.faq-section .section-title { color: var(--white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--gold); }
.faq-question span { font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.active .faq-question span { transform: rotate(45deg); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer { max-height: 200px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-brand p:last-child {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links ul a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-bottom a { color: var(--gold); }

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
  }

  .nav-menu.open { right: 0; }
  .hamburger { display: flex; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }

  .project-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-image img { height: 300px; }

  .news-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .timeline::before { left: 60px; }
  .timeline-year { min-width: 60px; font-size: 1rem; }
}
/* ============================================
   PAGE HERO (pagine interne)
   ============================================ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.page-hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 1rem;
}

/* ============================================
   PAGE INTRO
   ============================================ */
.page-intro {
  padding: 6rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.intro-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  line-height: 1.3;
}

.intro-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-box {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   STRUTTURA SECTION
   ============================================ */
.struttura-section {
  padding: 6rem 0;
  background: var(--light-gray);
}

.struttura-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.struttura-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.struttura-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.struttura-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.struttura-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--black);
}

.struttura-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  padding: 6rem 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover { color: var(--gold); }

/* ============================================
   COSTRUTTORI
   ============================================ */
.costruttori-section {
  padding: 6rem 0;
  background: var(--dark-gray);
  color: var(--white);
}

.costruttori-section .section-title { color: var(--white); }

.costruttori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.costruttore-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s;
}

.costruttore-card:hover {
  border-color: var(--gold);
}

.costruttore-card.highlight {
  border-color: var(--gold);
  background: rgba(232,160,32,0.08);
}

.costruttore-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.costruttore-ruolo {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.costruttore-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE PAGINE INTERNE
   ============================================ */
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .struttura-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; }
  .costruttori-grid { grid-template-columns: 1fr; }
}
