/* VARIABLES */
:root {
  --green: #00ae9d;
  --light-green: #76c9af;
  --dark-green: #194659;
  --highlight: #28b3ee;
  --light-pink: #ff82c7;
  --pink: #ff73c9;
  --plyr-color-main: #76c9af;
}
/* FONTS */

/*html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
  font-size: 62.5%;
}

@font-face {
  font-family: "notesesa";
  src:
    url("fonts/notesesabold.woff2") format("woff2"),
    url("fonts/notesesabold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "notesesa";
  src:
    url("fonts/notesesa.woff2") format("woff2"),
    url("fonts/notesesa.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

.custom-grid :root {
  /* === PALETTE COLORI ESA / COMM-EO === */
  --bg-deep: #05101a; /* Deep Space Blue */
  --bg-panel: rgba(255, 255, 255, 0.05); /* Glass Effect */
  --text-main: #ffffff;
  --text-muted: #d0e1f9;

  /* Accenti Cromatici */
  --accent-day1: #00ae9d; /* ESA Teal */
  --accent-day2: #0077b6; /* ESA Ocean Blue */
  --accent-day3: #48cae4; /* ESA Sky Blue */

  --border-light: rgba(255, 255, 255, 0.15);
}

.custom-grid {
  font-family: "notesesa", sans-serif;
}
.custom-grid header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  max-width: 1400px; /* Più largo per la vista griglia */
  margin-left: auto;
  margin-right: auto;
}

.custom-grid h1 {
  font-size: 3.2em;
  margin: 0;
  font-weight: 900; /* Stile Notes Bold */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #90e0ef);
  -webkit-background-clip: text;
  /*-webkit-text-fill-color: transparent; */
  line-height: 1.1;
}

.custom-grid .subtitle {
  font-size: 1.3em;
  color: #caf0f8;
  margin-top: 10px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.custom-grid .dates {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 15px;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 174, 157, 0.5);
}

.custom-grid .main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne affiancate */
  gap: 25px;
  max-width: 1800px;
  margin: 0 auto;
}

.custom-grid .day-column {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.custom-grid .day-column:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.custom-grid .col-header {
  padding: 20px;
  text-align: center;
  font-weight: 800; /* Font bold stile ESA */
  text-transform: uppercase;
  font-size: 1.25em;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  min-height: 70px; /* Altezza minima per allineamento */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.custom-grid .day1 .col-header {
  background: linear-gradient(135deg, #00ae9d, #2a9d8f);
}
.custom-grid .day2 .col-header {
  background: linear-gradient(135deg, #0077b6, #023e8a);
}
.custom-grid .day3 .col-header {
  background: linear-gradient(135deg, #48cae4, #0096c7);
}

.custom-grid .day1 {
  border-top: 5px solid #00ae9d;
}
.custom-grid .day2 {
  border-top: 5px solid #0077b6;
}
.custom-grid .day3 {
  border-top: 5px solid #48cae4;
}

.custom-grid .session-list {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.custom-grid .session {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}
.custom-grid .session:last-child {
  border-bottom: none;
}

.custom-grid .session-meta {
  text-align: right;
  font-size: 0.95em;
  font-weight: 600; /* Numeri più marcati */
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-feature-settings: "tnum"; /* Numeri tabulari */
}

.custom-grid .day1 .session-meta {
  color: #4ecdc4;
}
.custom-grid .day2 .session-meta {
  color: #90e0ef;
}
.custom-grid .day3 .session-meta {
  color: #ade8f4;
}

.custom-grid .session-content {
  text-align: left;
}

.custom-grid .session-title {
  font-weight: 700;
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.3;
}

.custom-grid .session-desc {
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 300;
}

.custom-grid .break {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  align-items: center;
}
.custom-grid .break .session-meta {
  opacity: 0.7;
  font-size: 0.9em;
}
.custom-grid .break .session-title {
  font-style: italic;
  font-weight: 500;
  color: #b0c4de;
  margin: 0;
}

.custom-grid .social {
  background: linear-gradient(90deg, rgba(0, 174, 157, 0.15), transparent);
  border-left: 4px solid #ffd700;
}
.custom-grid .social .session-title {
  color: #ffd700;
}
.custom-grid .social .session-meta {
  color: #ffd700;
}

.custom-grid .parallel-section {
  max-width: 1800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.custom-grid .parallel-header {
  font-size: 1.8em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
  letter-spacing: 2px;
}

.custom-grid .parallel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.custom-grid .parallel-box {
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.2s ease;
}

.custom-grid .parallel-box:hover {
  border-color: var(--accent-day3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.custom-grid .p-title {
  font-weight: 700;
  font-size: 1.1em;
  color: #48cae4;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.custom-grid .p-desc {
  font-size: 0.95em;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .custom-grid .main-grid,
  .custom-grid .parallel-grid {
    grid-template-columns: 1fr;
  }
  .day-column {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 2em;
  }
}

@media print {
  .custom-grid body {
    background: white;
    color: black;
    padding: 0;
  }
  .custom-grid .day-column,
  .custom-grid .parallel-box {
    border: 1px solid #ccc;
    color: black;
    break-inside: avoid;
    box-shadow: none;
  }
  .custom-grid h1,
  .custom-grid .dates,
  .custom-grid .subtitle,
  .custom-grid .session-title {
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
    text-shadow: none;
  }
  .custom-grid .session-desc,
  .custom-grid .p-desc {
    color: #333;
  }
  .col-header {
    background: #eee !important;
    color: black;
    border-bottom: 1px solid #ccc;
  }
}
