/* ===================================
   VALERIO MONDA — WEBSITE STYLES
   Font: Michroma (Google Fonts)
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Michroma', sans-serif;
  background-color: #14161a;
  color: #ffffff;
  min-height: 100vh;
}

/* === NAVBAR === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}

nav ul li a {
  font-family: 'Michroma', sans-serif;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  opacity: 1;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 3px;
}

/* Navbar su pagine interne (sfondo scuro) */
nav.dark-nav {
  background: rgba(20, 22, 26, 1);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.00);
}

/* === HOME — HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* =============================================
     SOSTITUISCI QUI con il percorso della tua foto
     Esempio: background-image: url('images/sfondo.jpg');
     ============================================= */
  background-image: url('images/sfondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.65);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-logo {
  /* =============================================
     SOSTITUISCI images/logo.png con il tuo logo
     ============================================= */
  width: 270px;
  height: auto;
  object-fit: contain;
  margin-top: 100px;	
  margin-bottom: 8px;
}

.hero-name {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 30px;
}

.hero-role {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.7em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.hero-services {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(0.15rem, 1.2vw, 0.90rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  margin-top: 8px;
}

.hero-services span {
  margin: 12 0px;
}

.hero-services span:not(:last-child)::after {
  content: '-';
  margin-left: 15px;
  margin-right: 7px;
  color: rgba(255,255,255,0.3);
}


/* === VIDEO HERO === */
.hero-video {
  margin-top: 70px;
  width: 900px;
  max-width: 90%;
}

.hero-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* === PAGINE INTERNE === */
.page-section {
  min-height: 100vh;
  padding: 140px 10% 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin: 18px auto 0;
}

/* === CHI SONO === */
.bio-text {
  font-family: 'Michroma', sans-serif;
  font-size: 0.92rem;
  line-height: 2;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  max-width: 1000px;
  text-align: justify;
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  width: 100%;
  max-width: 1100px;
}

/* Settimo rettangolo centrato */
.portfolio-item:nth-child(7) {
  grid-column: 2;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
  opacity: 0.6;
}

/* Placeholder grigio se non c'è thumbnail */
.portfolio-item .thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid rgba(255,255,255,0.9);
  margin-left: 4px;
}

.portfolio-item:hover .play-btn {
  background: rgba(255,255,255,0.22);
  transform: translate(-50%, -50%) scale(1.1);
}

/* === CONTATTI FORM === */
.contact-form {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Michroma', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  padding: 14px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: rgba(255,255,255,0.7);
}

.contact-form textarea {
  resize: none;
  height: 130px;
}

.contact-form button {
  font-family: 'Michroma', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 16px 50px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-form button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav {
    padding: 18px 24px;
    justify-content: center;
  }

  nav ul {
    gap: 22px;
  }

  nav ul li a {
    font-size: 0.65rem;
  }

  .page-section {
    padding: 120px 6% 60px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .hero-services {
    white-space: normal;
    text-align: center;
    line-height: 2.2;
  }

/* ===== FIX HERO MOBILE ===== */

  .hero-content {
    transform: none;
    padding: 0 20px;
    gap: 16px;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-name {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
  }

  .hero-role {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .hero-services {
    font-size: 0.7rem;
    line-height: 1.8;
  }

  .hero-video {
    width: 100%;
    margin-top: 30px;
  }
}


@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item:nth-child(7) {
    grid-column: 1;
    max-width: 100%;
  }
}
