*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #0a0a0a;
  --black2: #111111;
  --card:   #181818;
  --border: #2a2a2a;
  --white:  #ffffff;
  --grey:   #888888;
  --grey2:  #555555;
  --yellow: #f5c400;
  --yellow2:#e0b000;
}

html {
  scroll-behavior: smooth;
  background: #0a0a0a !important;
  color-scheme: dark;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a !important;
  color: #ffffff !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a !important;
  border-bottom: 1px solid #2a2a2a;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.nav__logo span { color: #f5c400; }

.nav__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888888;
  border: 1px solid #2a2a2a;
  padding: 5px 14px;
  border-radius: 2px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 6vw 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a !important;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
}

.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.5s ease both;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #f5c400;
}

.hero__title {
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #ffffff;
  animation: fadeUp 0.55s 0.08s ease both;
}

.hero__title .italic {
  font-style: italic;
  font-weight: 300;
  color: #888888;
  display: block;
}

.hero__desc {
  margin-top: 32px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #888888;
  max-width: 480px;
  animation: fadeUp 0.55s 0.16s ease both;
}

.hero__meta {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.55s 0.24s ease both;
}

.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }

.hero__meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555555;
}

.hero__meta-value {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

/* ─── SEZIONI ─── */
.section {
  padding: 50px 6vw;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a !important;
}

.section--dark {
  background: #111111 !important;
}

.section-skills {
  display: flex;
  gap: 50px;
}

.section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #f5c400;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: #ffffff;
}

.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: #888888;
  max-width: 560px;
}

.section-body + .section-body { margin-top: 16px; }

/* ─── DIARIO ─── */
.diary__header {
  margin-bottom: 80px;
}

.diary__hint {
  font-size: 0.8rem;
  font-weight: 300;
  color: #555555;
  max-width: 400px;
  line-height: 1.6;
  margin-top: 12px;
}

.diary__line {
  position: relative;
  padding-left: 52px;
}

.diary__line::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #f5c400, #2a2a2a 85%, transparent);
}

/* ─── GRUPPO ─── */
.group { margin-bottom: 90px; position: relative; }

.group__dot {
  position: absolute;
  left: -44px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #f5c400;
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 0 1px #f5c400;
  z-index: 2;
}

.group__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.group__edition {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #f5c400;
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 2px;
}

.group__period {
  font-size: 0.75rem;
  font-weight: 300;
  color: #555555;
  letter-spacing: 0.05em;
}

.group__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #ffffff;
}

/* ─── FLIP CARD ─── */
.group__students {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.student-tag {
  background-color: transparent;
  width: 280px;
  height: 380px;
  perspective: 1500px;
  cursor: pointer;
  flex-shrink: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border-radius: 28px;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25);
}

.student-tag:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front, 
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 28px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.flip-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  transform: rotateY(0deg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.flip-back {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: white;
  transform: rotateY(180deg);
  justify-content: space-between;
  gap: 1rem;
}

.student-tag__avatar {
  width: 110px;
  height: 110px;
  background: #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
}

.student-tag__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(120deg, #0f2b3d, #1b4a6e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.3rem;
}

.student-school {
  font-weight: 600;
  color: #2563eb;
  background: #eef2ff;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.student-class {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  background: #f1f5f9;
  padding: 0.2rem 0.9rem;
  border-radius: 30px;
  margin-top: 0.4rem;
}

/* SOCIAL DELLE CARD FLIP (classe rinominata per evitare conflitti) */
.card-social {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.3rem;
}

.card-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.card-social a svg {
  width: 20px;
  height: 20px;
  fill: #1e293b;
  transition: fill 0.2s;
}

.card-social a:hover {
  background: #1e293b;
  transform: translateY(-4px);
}

.card-social a:hover svg {
  fill: white;
}

.back-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #facc15, #ffb347);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.back-sub {
  font-weight: 500;
  font-size: 1rem;
  background: rgba(255,255,240,0.15);
  padding: 0.25rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.back-detail {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  opacity: 0.9;
}

/* Stili per le liste nel retro delle card flip */
.back-detail ul,
.back-detail ol {
  margin: 0.5rem 0 0.5rem 1.5rem;  /* rientro sinistro per la lista principale */
  padding-left: 0;
}

.back-detail li {
  margin-bottom: 0.25rem;
  text-align: left;
}

/* Stili specifici per liste nidificate (sotto-liste) */
.back-detail ul ul,
.back-detail ol ul,
.back-detail ul ol,
.back-detail ol ol {
  margin: 0.25rem 0 0.25rem 1.8rem;  /* rientro maggiore per il secondo livello */
  padding-left: 0;
}

.back-detail li ul,
.back-detail li ol {
  margin-top: 0.25rem;
}

/* Opzionale: stile per i pallini delle liste */
.back-detail ul {
  list-style-type: disc;
}

.back-detail ul ul {
  list-style-type: circle;  /* stile diverso per il secondo livello */
}

.back-detail li strong {
  color: #facc15;  /* evidenzia le etichette in giallo */
}

.back-icon-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.mini-badge {
  background: #334155;
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.text-avatar {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  border: 1px solid #333;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 196, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  background: #000;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ─── SETTIMANE ─── */
.week-block { margin-bottom: 48px; margin-top: 48px;}

.week-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555555;
  border-left: 2px solid #f5c400;
  padding-left: 12px;
  margin-bottom: 16px;
}

/* ─── CARD GIORNI ─── */
.days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #0a0a0a;
}

.day-card {
  background: #181818;
  padding: 28px 24px;
  position: relative;
  transition: background 0.2s ease;
}

.day-card:hover { background: #1e1e1e; }

.day-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: #f5c400;
}

.day-card:hover::after { opacity: 1; }

.day-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.day-card__num {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.04em;
}

.day-card__weekday {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5c400;
  text-align: right;
  margin-top: 4px;
}

.day-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #ffffff;
}

.day-card__text {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.8;
  color: #888888;
}

/* ─── MODAL IMAGE ─── */
.modal-image {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.modal-image img {
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  transition: transform 0.3s ease;
}

.modal-image img:hover {
  transform: scale(1.02);
}

/* Ottimizzazione per schermi piccoli */
@media (max-width: 768px) {
  .modal-image img {
    max-height: 300px;
    width: auto;
  }
}

/* ─── SLIDER / CAROUSEL ─── */
.slider-container {
  position: relative;
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 15px 20px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #f5c400;
  border: 1px solid rgba(245,196,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(245,196,0,0.8);
  color: #000;
  border-color: #f5c400;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #f5c400;
  width: 25px;
  border-radius: 5px;
}

.dot:hover {
  background: #f5c400;
  opacity: 0.7;
}

/* Responsive slider */
@media (max-width: 768px) {
  .slide img {
    height: 280px;
  }
  
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .slide-caption {
    font-size: 0.7rem;
    padding: 10px 12px 8px;
  }
}

@media (max-width: 480px) {
  .slide img {
    height: 220px;
  }
}

/* ─── GRUPPO FUTURO ─── */
.group--future { opacity: 0.35; }

.group--future .group__dot {
  background: #2a2a2a;
  box-shadow: 0 0 0 1px #2a2a2a;
  border-color: #0a0a0a;
}

.group--future .group__edition {
  background: #2a2a2a;
  color: #555555;
}

.group--future .group__title { color: #555555; }

.future-card {
  background: #181818;
  border: 1px dashed #2a2a2a;
  padding: 48px 32px;
  text-align: center;
}

.future-card__icon { font-size: 1.8rem; margin-bottom: 16px; display: block; opacity: 0.4; }

.future-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555555;
  margin-bottom: 10px;
}

.future-card__text {
  font-size: 0.8rem;
  font-weight: 300;
  color: #555555;
  line-height: 1.7;
}

/* ─── COMPETENZE ─── */
.skills-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
}

.skill-card {
  background: #111111;
  padding: 36px 28px;
  transition: background 0.2s ease;
}

.skill-card:hover { background: #181818; }

.skill-card__num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #f5c400;
  margin-bottom: 20px;
}

.skill-card__title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1.2;
  color: #ffffff;
}

.skill-card__text {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  color: #888888;
}

/* ─── FOOTER ─── */
.footer {
  background: #0f0f0f !important;
  border-top: 1px solid #2a2a2a;
}

.footer__main {
  padding: 64px 6vw 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
  line-height: 1;
}

.footer__logo span { color: #f5c400; }

.footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  background: #181818;
}

.footer__social a:hover { border-color: #f5c400; background: #1e1e1e; }

.footer__social a svg {
  width: 16px; height: 16px;
  fill: #888888;
  transition: fill 0.2s;
}

.footer__social a:hover svg { fill: #f5c400; }

.footer__col-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 18px;
}

.footer__address {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 2;
  color: #888888;
}

.footer__address strong {
  display: block;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.footer__bottom {
  padding: 18px 6vw;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.68rem;
  font-weight: 300;
  color: #555555;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.68rem;
  font-weight: 400;
  color: #555555;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer__links a:hover { color: #ffffff; }

/* ─── MODAL ─── */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #181818;
  margin: 5% auto;
  padding: 40px;
  border: 1px solid #f5c400;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  position: relative;
  animation: fadeUp 0.3s ease;
  max-height: 85vh; /* Altezza massima relativa al viewport */
  overflow-y: auto; /* Scroll interno per contenuti lunghi */
}

/* Personalizzazione scrollbar per modal-content (opzionale, estetica) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #f5c400;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #e0b000;
}

.close-btn {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  color: #f5c400;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: #181818;
  padding: 0 0 10px 10px;
  margin: -20px -20px 0 0;
  z-index: 100;
}

.close-btn:hover {
  color: #ffffff;
}

#modal-text {
  line-height: 1.8;
  color: #888888;
  font-size: 1rem;
  clear: both; /* Per non far sovrapporre il testo al close button */
}

#modal-text h2 { 
  color: #ffffff;
  margin-bottom: 20px;
  padding-right: 30px; /* Spazio per non sovrapporsi al close button */
}

/* Assicura che lo slider sia scrollabile */
.modal-content .slider-container {
  margin: 20px 0;
}

/* Ottimizzazione per schermi piccoli */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 25px;
    width: 95%;
    max-height: 80vh;
  }
  
  .close-btn {
    font-size: 28px;
    right: 10px;
    top: 5px;
  }
  
  #modal-text h2 {
    font-size: 1.5rem;
    padding-right: 25px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    margin: 15% auto;
  }
  
  .close-btn {
    font-size: 24px;
  }
}

/* ─── GALLERY A GRIGLIA PER MODALE ─── */
.gallery-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.gallery-grid-modal__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
}

.gallery-grid-modal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 196, 0, 0.2);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-grid-modal__overlay span {
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 50px;
  color: #f5c400;
}

.gallery-grid-modal__item:hover {
  transform: translateY(-5px);
  border-color: #f5c400;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-grid-modal__item:hover img {
  transform: scale(1.1);
}

.gallery-grid-modal__item:hover .gallery-grid-modal__overlay {
  opacity: 1;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-grid-modal {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid-modal {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .gallery-grid-modal__overlay span {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
}

/* ─── LIGHTBOX PER IMMAGINI ─── */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  animation: zoomIn 0.3s ease;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #f5c400;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  color: #f5c400;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  color: #ffffff;
  background: rgba(245, 196, 0, 0.3);
}

.image-modal-caption {
  margin-top: 15px;
  color: #f5c400;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .image-modal-close {
    top: -35px;
    right: 0;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .image-modal-caption {
    font-size: 0.75rem;
  }
}

/* ─── VIDEO NEL MODALE ─── */
.modal-video-container {
  position: relative;
  width: 100%;
  margin: 20px 0 25px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-video-container iframe,
.modal-video-container video {
  display: block;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Stile per video locale */
.modal-video-container video {
  background: #000;
}

.modal-video-container video:focus {
  outline: none;
}

/* Punti chiave / highlights */
.video-highlights {
  background: #111111;
  border-left: 3px solid #f5c400;
  padding: 20px 25px;
  margin: 25px 0 10px;
  border-radius: 8px;
}

.video-highlights h3 {
  color: #f5c400;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.video-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-highlights li {
  color: #888888;
  font-size: 0.85rem;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.video-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f5c400;
  font-weight: bold;
}

/* Responsive video */
@media (max-width: 768px) {
  .modal-video-container iframe,
  .modal-video-container video {
    height: auto;
    min-height: 200px;
  }
  
  .video-highlights {
    padding: 15px 20px;
  }
  
  .video-highlights li {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .modal-video-container iframe,
  .modal-video-container video {
    min-height: 180px;
  }
  
  .video-highlights {
    padding: 12px 15px;
  }
  
  .video-highlights h3 {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
}

/* ─── DOPPIA IMMAGINE AFFIANCATA ─── */
.double-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

.double-image__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
}

.double-image__item:hover {
  transform: translateY(-5px);
  border-color: #f5c400;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.double-image__item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.double-image__item:hover img {
  transform: scale(1.05);
}

.double-image__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 15px 15px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Dettagli aggiuntivi */
.double-image-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
  padding-top: 10px;
}

.detail-card {
  background: #111111;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 2px solid #f5c400;
}

.detail-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.detail-text strong {
  color: #f5c400;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.detail-text p {
  color: #888888;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .double-image {
    gap: 15px;
  }
  
  .double-image__item img {
    height: 200px;
  }
  
  .double-image__caption {
    font-size: 0.7rem;
    padding: 10px 10px 8px;
  }
  
  .double-image-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .double-image {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .double-image__item img {
    height: 220px;
  }
  
  .detail-card {
    padding: 12px;
  }
  
  .detail-icon {
    font-size: 1.5rem;
  }
}

/* ─── CONTATTI ─── */
.contact-wrapper {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
  min-width: 300px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus { 
  border-color: #f5c400;
  outline: none;
}

.form-consent {
  font-size: 12px;
}

.form-consent a { color: #f5c400; }

.contact-right form .btn-submit, .container-cta button {
  margin-top: 20px;
  background-color: #f5c400;
  color: black;
  padding: 10px;
  border: 1px solid #f5c400;
  border-radius: 2px;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.contact-right form .btn-submit:hover, .container-cta button:hover {
  background-color: #000000;
  color: #f5c400;
  border: 1px solid #f5c400;
  box-shadow: 0 0 8px rgba(245, 196, 0, 0.4);
}

.container-cta { margin-top: 20px; }

/* ─── ANIMAZIONI ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.07s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.14s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.21s; }

/* ─── MEDIA QUERIES ─── */
@media (max-width: 900px) {
  .days { grid-template-columns: repeat(2, 1fr); }
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 5vw 32px;
  }
  .footer__main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  nav { padding: 16px 5vw; }
  .hero { padding: 100px 5vw 60px; }
  .section { padding: 70px 5vw; }
  .contact-wrapper { flex-direction: column; }
  .section-skills { flex-direction: column; gap: 30px; }
  .section-skills iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .group__students { gap: 1.2rem; }
  .student-tag { width: 260px; height: 370px; }
}

@media (max-width: 500px) {
  .days { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .footer__main { grid-template-columns: 1fr; }
}
.search-container {
  text-align: center;
  margin: 40px 0;
}

#searchInput {
  padding: 10px 15px;
  width: 300px;
  border-radius: 8px;
  border: 1px solid #f5c400;
  background: #111;
  color: white;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f5c400;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background: #e0b000;
  transform: translateY(-3px);
}

#suggestions {
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: #111;
  border: 1px solid #333;
  border-top: none;
  z-index: 1000;
}


.suggestion-item {
  padding: 10px;
  cursor: pointer;
  color: white;
}

.suggestion-item:hover {
  background: #f5c400;
  color: black;
}
.visitor-diary{
  padding: 80px 6vw;
  background: #111;
}

.diary-box{
  margin-top: 30px;
  max-width: 800px;
}

#visitorNote{
  width: 100%;
  min-height: 220px;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 20px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border 0.2s ease;
}

#visitorNote:focus{
  border-color: #f5c400;
}

.diary-actions{
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.diary-actions button{
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: #f5c400;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.diary-actions button:hover{
  transform: translateY(-2px);
}

.danger-btn{
  background: #2a2a2a !important;
  color: white !important;
}

#saveMessage{
  margin-top: 15px;
  color: #888;
  font-size: 0.85rem;
}
/* ─── INTRO CINEMATOGRAFICA ─── */

.intro-overlay{

  position: fixed;
  inset: 0;

  background: #050505;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10000;

  overflow: hidden;

  transition:
  opacity 1.2s ease,
  visibility 1.2s ease;

}

.intro-overlay.hide{

  opacity: 0;
  visibility: hidden;

}

.intro-content{

  text-align: center;

  animation:
  introFade 2s ease;

}

.intro-small{

  color: #f5c400;

  letter-spacing: 0.4em;

  text-transform: uppercase;

  font-size: 0.75rem;

  margin-bottom: 24px;

  opacity: 0.7;
}

.intro-content h1{

  font-size:
  clamp(4rem, 12vw, 9rem);

  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.05em;

  margin-bottom: 30px;

}

.intro-line{

  width: 120px;
  height: 2px;

  background: #f5c400;

  margin: auto auto 24px;

  animation:
  lineExpand 1.8s ease;
}

.intro-sub{

  color: #777;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  font-size: 0.8rem;
}


/* ANIMAZIONI */

@keyframes introFade{

  from{

    opacity: 0;
    transform:
    translateY(30px);

  }

  to{

    opacity: 1;
    transform:
    translateY(0);

  }

}

@keyframes lineExpand{

  from{

    width: 0;
    opacity: 0;

  }

  to{

    width: 120px;
    opacity: 1;

  }

}
/* ─── BACKGROUND PREMIUM ─── */

body{
  background: #050505;
  overflow-x: hidden;
}

/* CONTAINER */

.bg-effects{

  position: fixed;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;
}

/* GLOW */

.bg-glow{

  position: absolute;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  filter: blur(140px);

  opacity: 0.13;

  animation:
  floatingGlow 18s ease-in-out infinite;

}

/* GLOW 1 */

.glow-1{

  background: #f5c400;

  top: -200px;
  left: -120px;

}

/* GLOW 2 */

.glow-2{

  background: #ff7a00;

  bottom: -300px;
  right: -150px;

  animation-delay: 4s;
}

/* GLOW 3 */

.glow-3{

  background: #ffd84d;

  top: 40%;
  left: 45%;

  animation-delay: 8s;
}

/* ANIMAZIONE */

@keyframes floatingGlow{

  0%{

    transform:
    translate(0,0)
    scale(1);

  }

  25%{

    transform:
    translate(40px,-30px)
    scale(1.08);

  }

  50%{

    transform:
    translate(-20px,40px)
    scale(0.96);

  }

  75%{

    transform:
    translate(30px,20px)
    scale(1.04);

  }

  100%{

    transform:
    translate(0,0)
    scale(1);

  }

}
/* ─── MOUSE GLOW ─── */

.mouse-glow{

  position: fixed;

  width: 380px;
  height: 380px;

  border-radius: 50%;

  background:
  radial-gradient(
    circle,
    rgba(245,196,0,0.16) 0%,
    rgba(245,196,0,0.08) 30%,
    transparent 70%
  );

  pointer-events: none;

  transform:
  translate(-50%, -50%);

  z-index: -1;

  transition:
  width 0.3s ease,
  height 0.3s ease;

  mix-blend-mode: screen;

}
;
/* ─── CURSORE PREMIUM ─── */

body{
  cursor: none;
}

/* CERCHIO ESTERNO */

.custom-cursor{

  position: fixed;

  top: 0;
  left: 0;

  width: 46px;
  height: 46px;

  border:
  1px solid rgba(255,255,255,0.45);

  border-radius: 50%;

  transform:
  translate(-50%, -50%);

  pointer-events: none;

  z-index: 999999999;

  backdrop-filter: blur(4px);

  background:
  rgba(255,255,255,0.03);

  box-shadow:
  0 0 30px rgba(245,196,0,0.08);

  transition:
  width 0.25s ease,
  height 0.25s ease,
  transform 0.08s linear,
  background 0.25s ease,
  border-color 0.25s ease;

}

/* PUNTO INTERNO */

.cursor-dot{

  position: fixed;

  top: 0;
  left: 0;

  width: 8px;
  height: 8px;

  background: #f5c400;

  border-radius: 50%;

  transform:
  translate(-50%, -50%);

  pointer-events: none;

  z-index: 999999999;

  box-shadow:
  0 0 18px rgba(245,196,0,0.8);

}

/* HOVER */

.custom-cursor.hover{

  width: 74px;
  height: 74px;

  background:
  rgba(245,196,0,0.08);

  border-color:
  rgba(245,196,0,0.9);

}
/* NASCONDE CURSORE ORIGINALE */

*{
  cursor: none !important;
}
/* ─── BUILD SECTION ─── */

.build-section{
  padding:120px 6vw;
  background:#0a0a0a;
  border-top:1px solid #2a2a2a;
}

.build-header{
  max-width:800px;
  margin-bottom:70px;
}

.build-label{
  display:inline-block;

  font-size:0.7rem;
  font-weight:700;

  letter-spacing:0.2em;
  text-transform:uppercase;

  color:#f5c400;

  margin-bottom:18px;
}

.build-header h2{
  font-size:clamp(2.2rem,5vw,4.5rem);

  font-weight:900;
  line-height:1;

  text-transform:uppercase;

  margin-bottom:24px;

  color:#fff;
}

.build-header p{
  color:#888;
  line-height:1.9;
  font-size:1rem;
  max-width:700px;
}

.build-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(240px,1fr));

  gap:24px;
}

.build-card{
  background:
  linear-gradient(
    145deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );

  border:1px solid rgba(255,255,255,0.06);

  border-radius:24px;

  padding:32px;

  position:relative;

  overflow:hidden;

  transition:
  transform .35s ease,
  border-color .35s ease,
  box-shadow .35s ease;

  backdrop-filter:blur(10px);
}

.build-card:hover{
  transform:translateY(-8px);

  border-color:rgba(245,196,0,.4);

  box-shadow:
  0 0 30px rgba(245,196,0,.08);
}

.build-card::before{
  content:"";

  position:absolute;
  inset:0;

  background:
  radial-gradient(
    circle at top left,
    rgba(245,196,0,.12),
    transparent 60%
  );

  opacity:0;

  transition:opacity .4s ease;
}

.build-card:hover::before{
  opacity:1;
}

.build-icon{
  font-size:2.2rem;
  margin-bottom:20px;
}

.build-card h3{
  font-size:1.2rem;
  font-weight:800;

  margin-bottom:14px;

  color:#fff;
}

.build-card p{
  color:#888;
  line-height:1.8;
  font-size:0.92rem;
}
/* ─── FAQ ─── */

.faq-section{
  padding:120px 6vw;
  background:#0a0a0a;
}

.faq-header{
  margin-bottom:60px;
}

.faq-label{
  display:inline-block;
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#f5c400;
  margin-bottom:16px;
}

.faq-header h2{
  font-size:clamp(2rem,5vw,4rem);
  font-weight:900;
  text-transform:uppercase;
  color:#fff;
}

.faq-container{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.faq-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  overflow:hidden;

  background:
  linear-gradient(
    145deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.01)
  );

  transition:.3s ease;
}

.faq-item:hover{
  border-color:rgba(245,196,0,.35);
  transform:translateY(-3px);
}

.faq-question{
  width:100%;
  background:none;
  border:none;
  color:#fff;

  padding:24px 28px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  cursor:pointer;

  font-size:1rem;
  font-weight:700;
}

.faq-question span{
  font-size:1.4rem;
  color:#f5c400;

  transition:.3s ease;
}

.faq-answer{
  max-height:0;
  overflow:hidden;

  transition:max-height .4s ease;
}

.faq-answer p{
  padding:0 28px 24px;
  color:#888;
  line-height:1.8;
}

.faq-item.active .faq-answer{
  max-height:300px;
}

.faq-item.active .faq-question span{
  transform:rotate(45deg);
}
 .diary-overlay {

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,0.75);

  backdrop-filter: blur(10px);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 9999;

}

.diary-box {

  width: 90%;

  max-width: 850px;

  max-height: 85vh;

  overflow-y: auto;

  background: #111;

  padding: 50px;

  border-radius: 24px;

  border: 1px solid #2a2a2a;

  position: relative;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.5);

}

.close-diary {

  position: absolute;

  top: 20px;

  right: 25px;

  font-size: 1.5rem;

  cursor: pointer;

  color: #f5c400;

}

.diary-entry {

  margin-top: 25px;

  padding: 25px;

  border-left: 3px solid #f5c400;

  background: #181818;

  border-radius: 14px;

}

.diary-day {

  display: block;

  color: #f5c400;

  font-weight: 700;

  margin-bottom: 12px;

  text-transform: uppercase;

}
.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

.modal-nav button {
  flex: 1;
  background: #181818;
  border: 1px solid #333;
  color: #f5c400;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-nav button:hover {
  background: #f5c400;
  color: #000;
  transform: translateY(-2px);
}
.energy-panel {
  margin-top: 35px;
  padding: 24px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
}

.energy-panel h3 {
  color: #f5c400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.energy-item {
  margin-bottom: 18px;
}

.energy-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #eaeaea;
}

.energy-bar {
  width: 100%;
  height: 10px;
  background: #222;
  border-radius: 999px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  background: #f5c400;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.energy-fill.stress {
  background: #ff5757;
}
.edition-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 12px;
  padding: 8px 16px;

  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.edition-status.finished {
  background: rgba(57,255,136,0.12);
  color: #39ff88;
}

.edition-status.working {
  background: rgba(255,196,0,0.12);
  color: #f5c400;
}

.edition-status.pending {
  background: rgba(180,180,180,0.12);
  color: #bdbdbd;
}
.diary-open-btn {

  position: relative;

  margin-top: 40px;

  padding: 16px 34px;

  border: 1px solid rgba(245,196,0,0.25);

  background:
  linear-gradient(
    145deg,
    rgba(245,196,0,0.12),
    rgba(245,196,0,0.04)
  );

  color: #f5c400;

  font-size: 0.9rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  border-radius: 14px;

  cursor: pointer;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border 0.35s ease;

  backdrop-filter: blur(10px);

  box-shadow:
    0 0 0 rgba(245,196,0,0);

}

.diary-open-btn::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
  linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.12),
    transparent
  );

  transform: translateX(-100%);

  transition: transform 0.7s ease;

}

.diary-open-btn:hover::before {

  transform: translateX(100%);

}

.diary-open-btn:hover {

  transform: translateY(-4px);

  border-color: rgba(245,196,0,0.7);

  box-shadow:
    0 10px 35px rgba(245,196,0,0.18);

}
#diaryContent {

  color: #d6d6d6;

  line-height: 1.9;

  font-size: 1rem;

}

#diaryContent h2 {

  font-size: clamp(2rem, 4vw, 3.5rem);

  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: -0.03em;

  margin-bottom: 24px;

  color: #ffffff;

}

#diaryContent p {

  margin-bottom: 22px;

  color: #9b9b9b;

  font-weight: 300;

  line-height: 1.95;

}

#diaryContent strong {

  color: #f5c400;

  font-weight: 700;

}
.diary-open-btn {

  position: relative;

  margin-top: 50px;

  padding: 20px 46px;

  border-radius: 18px;

  border: 1px solid rgba(245,196,0,0.35);

  background:
  linear-gradient(
    145deg,
    rgba(245,196,0,0.18),
    rgba(245,196,0,0.06)
  );

  color: #f5c400;

  font-size: 1rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  cursor: pointer;

  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;

  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 40px rgba(245,196,0,0.08);

}

.diary-open-btn::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
  linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );

  transform: translateX(-120%);

  transition: transform 0.8s ease;

}

.diary-open-btn:hover::before {

  transform: translateX(120%);

}

.diary-open-btn:hover {

  transform: translateY(-5px) scale(1.02);

  border-color: rgba(245,196,0,0.8);

  box-shadow:
    0 18px 55px rgba(245,196,0,0.22);

}
#diaryContent {

  background:
  linear-gradient(
    145deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 24px;

  padding: 40px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.45);

  color: #d8d8d8;

}
#diaryContent h2 {

  position: relative;

  font-size: clamp(2.3rem, 5vw, 4rem);

  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: -0.04em;

  color: #f5c400;

  margin-bottom: 35px;

  line-height: 1;

}

#diaryContent h2::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -14px;

  width: 90px;
  height: 3px;

  border-radius: 20px;

  background:
  linear-gradient(
    90deg,
    #f5c400,
    transparent
  );

}
#diaryContent p {

  font-size: 1rem;

  line-height: 2;

  color: #a6a6a6;

  margin-bottom: 22px;

  font-weight: 300;

}

#diaryContent strong {

  color: #ffffff;

  font-weight: 700;

}
.diary-open-btn {

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 70px auto 0 auto;

  padding: 24px 60px;

  border-radius: 22px;

  border: 1px solid rgba(245,196,0,0.35);

  background:
  linear-gradient(
    145deg,
    rgba(245,196,0,0.18),
    rgba(245,196,0,0.06)
  );

  color: #f5c400;

  font-size: 1.1rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  cursor: pointer;

  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;

  backdrop-filter: blur(12px);

  box-shadow:
    0 12px 45px rgba(245,196,0,0.10);

}

.diary-open-btn::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
  linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );

  transform: translateX(-120%);

  transition: transform 0.8s ease;

}

.diary-open-btn:hover::before {

  transform: translateX(120%);

}

.diary-open-btn:hover {

  transform: translateY(-6px) scale(1.03);

  border-color: rgba(245,196,0,0.85);

  box-shadow:
    0 22px 65px rgba(245,196,0,0.25);

}
margin:n70px auto 0 auto;