*{box-sizing:border-box}
html,body{height:100%}

body {
  margin:0;

  /*
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(51, 117, 158, 0.28), transparent 55%),
    radial-gradient(1100px 700px at 86% 24%, rgba(39, 20, 54, 0.24), transparent 55%),
    radial-gradient(900px 650px at 60% 90%, rgba(167, 133, 60, 0.18), transparent 60%),
    linear-gradient(180deg, #060c1f, #121733);
  */

  background-image: url(images/background.png);
  background-size: 140%;
  overflow-x:hidden;
  position: relative;
}

.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  backdrop-filter: blur(5px) brightness(75%);
  pointer-events: none;
  background: transparent;
}

.responsive-div {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0) 5%, rgba(129, 129, 129, 0.5) 40%, rgba(129, 129, 129, 0.5) 60%, rgba(0, 0, 0, 0) 95%);
  width: 100%;
  height: auto;
  padding: 0.3vw;
}

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home h1 {
  color: transparent;
  background: linear-gradient(#e7e4e4, #fae1dd);
  background-clip: text;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 154, 162, 0.5),
    0 0 40px rgba(255, 183, 178, 0.4),
    0 0 70px rgba(255, 105, 180, 0.3);

  text-align: center;
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 98%;
  font-size: 65px;
  transform: rotate(355deg);
  margin-top: 20px;
}

.home h2 {
  text-align: center;
  color: white;
  font-size: 3vw;
  text-shadow: 0px 0px 15px black;
  padding-bottom: 10px;
  margin-top: -10px;
}

.countdown{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: 8px;
  flex-wrap:wrap;
  margin: 15px;
  padding:6px 7px;
  filter: drop-shadow(0px 0px 10px rgba(155, 0, 0, 0.925));
  color: white;
}

.countdown .num{
  font-weight:800;
  font-variant-numeric: tabular-nums;
  letter-spacing:.2px;
  font-size: 20px;
}

.countdown .lab{
  opacity: .9;
  font-weight:400;
  font-size: 11px;
}

.countdown .dot1{
  opacity: .90;
}

.foto {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 35px;
}

.foto1 {
  height: auto;
  width: 150px;
  border-radius: 7px;
  rotate: -5deg;
}

.foto2 {
  height: auto;
  width: 150px;
  border-radius: 7px;
  rotate: 5deg;
}

.timeline {
  /* attach to bottom of viewport */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
  
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;

  border-style: solid;
  border-width: 5px;
  border-color: rgba(223, 223, 223, 0.692);
  border-radius: 10px;

  transform: scale(0.7);
}

.timeline a{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 162, 255, 0.116);

  transform: scale(1.3);
}

.timeline h1 {
  text-align: center;
  color: white;
  font-size: 17px;
  text-shadow: 0px 0px 15px black;
  padding: 0px;
}

.timeline h2 {
  text-align: center;
  color: white;
  font-size: 35px;
  text-shadow: 0px 0px 15px black;
  margin-top: 15px;
  margin-left: 5px;
}

.lettera {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lettera img{
  width: 80%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.2);
}

.lettera h1 {
  text-align: center;
  color: white;
  font-size: 17px;
  text-shadow: 0px 0px 15px black;
  margin-top: -30px;
}

.lettera a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 162, 255, 0.116);
}

.lettera button {
  background-color: Transparent;
  background-repeat: no-repeat;
  border: none;
  overflow: hidden;  
}

.letteraModal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.lettera-content{
  position: relative;
  background-color: #fefefe;
  margin: 50px auto;
  padding: 0px;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s
}

@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}



/* timeline.css */
:root{
  --bg1:#070b18;
  --bg2:#121733;

  --text:rgb(255, 255, 255);
  --muted:rgb(228, 228, 228);
  --line:rgba(255,255,255,.14);

  --pink:rgba(255,120,210,.95);
  --gold:rgba(255,200,120,.95);

  --card:rgba(255,255,255,.06);
  --shadow: 0 18px 44px rgba(0,0,0,.55);

  --r:18px;
  --max:1600px; /* era 1100px, ora più largo */

  /* larghezza “rail” a sinistra (pallini + linea) */
  --rail:70px;  /* opzionale: ingrandisce la colonna sinistra */
}

.page{
  max-width:var(--max);
  margin:0 auto;
  padding:24px 8px 60px;
}

.top{
  padding:16px;
  border:1px solid var(--line);
  border-radius: calc(var(--r) + 8px);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
}

.back{
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  gap:8px;
  align-items:center;
  opacity:.9;
}

.title{
  margin:10px 0 0;
  font-size:28px;
  color:var(--text);
}

.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  line-height:1.5;
}

/* TIMELINE */
.timeline2{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Evento = rail a sinistra + card a destra */
.event{
  display:grid;
  grid-template-columns: var(--rail) 1fr;
  gap:12px;
  align-items:stretch;
}

/* Rail: linea verticale + pallino */
.rail{
  position:relative;
  display:flex;
  justify-content:center;
}

/* linea */
.rail::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.20), rgba(255,255,255,.06));
}

/* pallino */
.dot{
  width:14px;
  height:14px;
  border-radius:999px;
  margin-top:18px; /* allinea al top card */
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.35));
  box-shadow:
    0 0 0 4px rgba(255,120,210,.14),
    0 0 24px rgba(255,120,210,.25);
  border:1px solid rgba(255,255,255,.22);
}

/* Card evento */
.card{
  border:1px solid var(--line);
  border-radius: calc(var(--r) + 8px);
  background: var(--card);
  box-shadow: var(--shadow);
  padding:14px;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:8px;
}

.date{
  font-variant-numeric: tabular-nums;
  color:var(--muted);
  font-size:13px;
}

.tag{
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:var(--muted);
}

.h{
  margin:0;
  font-size:18px;
  line-height:1.35;
  color:var(--text);
}

.p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size: 14px;
}

/* Foto opzionale */
.img{
  margin-top:12px;
  width:100%;
  height:auto;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  display:block;
}
