/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f7f7f7;
  min-height: 100%;
  color: #000;
}

/* STRUTTURA PRINCIPALE */
.page {
  display: flex;
  height: 100vh;
}

/* ---------------- COLONNA SINISTRA ---------------- */
.left-panel {
  width: 50vw;
  background-image: url("images/home-left.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

/* MDEF sopra 25/26 */
.logo {
  position: absolute;
  bottom: 110px;
  left: 50px;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 25/26 in basso sinistra */
.year {
  position: absolute;
  bottom: 50px;
  left: 50px;
  font-size: 42px;
  font-weight: 500;
}

/* ---------------- COLONNA DESTRA ---------------- */
.right-panel {
  width: 50vw;
  background: #f7f7f7;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
}

/* NOME (alto destro, dentro la cornice) */
.name {
  position: absolute;
  top: 60px;
  right: 60px;
  font-size: 9px;               /* più piccolo */
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #111;
}

/* --- SEZIONE TERM 1, 2, 3 --- */
.terms {
  position: absolute;
  top: 140px;                   /* sposta in su/giù da qui */
  left: 40px;                   /* margine sinistro */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 360px;                 /* larghezza riga dei 3 TERM */
}

/* ogni colonna TERM */
.term-block {
  position: relative;           /* riferimento per il dropdown */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 110px;                 /* larghezza di ogni colonna */
}

/* nasconde checkbox */
.term-block input {
  display: none;
}

/* stile base del testo TERM */
.term-block label {
  text-decoration: none;
  color: #000;
  font-size: 14px;              /* leggermente più piccolo */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  line-height: 1;
}

.term-block label:hover {
  opacity: 0.5;
}

/* dropdown: NON spinge il layout (assoluto) */
.term-dropdown {
  position: absolute;
  top: 22px;                    /* distanza sotto “TERM X” */
  left: 0;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

/* Mostra la tendina quando la checkbox è attiva */
.term-block input:checked + label + .term-dropdown {
  display: flex;
}

/* Stile dei link nei dropdown */
.term-dropdown a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.term-dropdown a:hover {
  opacity: 0.5;
}

/* --- FOOTER --- */
.bottom-nav {
  position: absolute;
  bottom: 60px;
  left: 40px;                   /* stesso allineamento dei Term */
  transform: none;
  display: flex;
  justify-content: space-between;
  width: 360px;                 /* uguale ai Term */
}

.bottom-nav a {
  text-decoration: none;
  color: #000;
  font-size: 9px;               /* più piccolo */
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
}

.bottom-nav a:hover {
  opacity: 0.5;
}

/* Allineamento perfetto tra Term e Footer */
.term-block:nth-child(1),
.bottom-nav a:nth-child(1) {
  text-align: left;
}
.term-block:nth-child(2),
.bottom-nav a:nth-child(2) {
  text-align: center;
}
.term-block:nth-child(3),
.bottom-nav a:nth-child(3) {
  text-align: right;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .left-panel {
    height: 35vh;
  }

  .right-panel {
    height: 65vh;
    padding: 20px;
  }

  .terms {
    position: static;
    transform: none;
    justify-content: center;
    gap: 20px;
    width: auto;
  }

  .bottom-nav {
    position: static;
    transform: none;
    justify-content: center;
    gap: 30px;
    width: auto;
    margin-top: 20px;
  }

  .name {
    position: static;
    text-align: center;
    margin-bottom: 20px;
  }
}

/* --------------------------------------------- */
/* --- PAGINE INTERNE (layout a una colonna con margini) --- */
.page--inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  background: #f7f7f7;
  position: relative;
  padding: 60px;                /* margine uniforme su tutti i lati */
  padding-left: 140px;          /* spazio per il menu fisso a sinistra */
}

/* Area di testo principale */
.content-area {
  max-width: 900px;
  margin: 60px auto 100px auto; /* spazio sopra e sotto */
  padding: 0 40px;              /* margini laterali per la lettura */
  color: #111;
  line-height: 1.7;
}

/* Testo del percorso */
.content-area .breadcrumb {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: #777;
}

/* Titolo principale */
.content-area h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Paragrafi */
.content-area p {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Immagini del progetto */
.project-image {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
}

/* Footer in basso a destra (pagine interne) */
.inner-footer {
  position: absolute;
  bottom: 60px;
  right: 60px;
  display: flex;
  gap: 40px;
}

.inner-footer a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.inner-footer a:hover {
  opacity: 0.5;
}

/* --- MENU FISSO IN ALTO A SINISTRA (pagine interne) --- */
.fixed-index {
  position: fixed;
  top: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 100;
}

.fixed-index .menu-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

.fixed-index a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.fixed-index a:hover {
  opacity: 0.5;
}

/* Su mobile: menu centrato in alto */
@media (max-width: 900px) {
  .fixed-index {
    position: static;
    align-items: center;
    margin-bottom: 20px;
  }

  .page--inner {
    padding-left: 20px;
  }
}

/* --- VIDEO VIMEO EMBED RESPONSIVE --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- SEZIONI DEL PROGETTO (testi interni) --- */
.project-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 80px;             /* allinea con il testo principale */
}

.project-section h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  margin-bottom: 16px;
}

.project-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #111;
}

/* --- VIDEO ALLINEATO AL TESTO --- */
.aligned-video {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 80px;             /* margine laterale uguale ai paragrafi */
}
