/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: powderblue;
}

* { box-sizing: border-box; }

/* ===== HEADER ===== */
.titolo {
  padding: 20px;
  text-align: center;
  background-color: #5699DC;
  color: white;
}

/* ===== MENU ===== */
.menu {
  display: flex;
  justify-content: center;
  background-color: #333;
}

.menu a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
}

.menu a:hover {
  background-color: #575757;
  cursor: pointer;
}

/* ===== CONTENUTO ===== */
.contenitorePrincipale {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.contenitore {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* ===== COLONNE ===== */
.riga {
  display: flex;
  gap: 20px;
}

.colonna {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
}

.colonna1 {
  background-color: #ffffff;
  color: #5699DC;
  font-family: Audiowide, sans-serif;
}

.colonna2 {
  background-color: #00A36C;
  font-family: Karma, serif;
}

/* ===== IMMAGINI ===== */
img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.riga img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ===== VIDEO (video tag) ===== */
.video-box {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;

  border: 3px solid red;
  padding: 8px;
  box-sizing: border-box;
}

.video-box video {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 15px;
  background-color: #333;
  color: white;
  margin-top: 20px;
}

/* ===== BOTTONI ===== */
.pulsante {
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}

.pulsantePro {
  background-color: #5699DC;
  color: #ffffff;
}

.pulsanteBase {
  background-color: black;
  color: #00A36C;
}

.timeline-wrapper {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.timeline-svg {
    width: 100%;
    height: auto !important;
    display: block;
    max-height: none !important;
}


/* Questa è la regola FONDAMENTALE: forza <object> a seguire l’altezza dell’SVG */
object[type="image/svg+xml"] {
  width: 100%;
  height: auto !important;
  min-height: 1500px; /* altezza reale del tuo SVG */
  display: block;
}

#contenuto pre {
    white-space: pre-wrap;      /* Permette il ritorno a capo */
    word-wrap: break-word;      /* Spezza parole troppo lunghe */
    overflow-x: auto;           /* Evita lo sbordo */
    max-width: 100%;            /* Non supera mai la larghezza del contenitore */
    box-sizing: border-box;
}

#contenuto {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#contenuto * {
    max-width: 100% !important;
    box-sizing: border-box;
    flex-wrap: wrap !important;
    word-break: break-word;
}

#contenuto img {
    height: auto !important;
    max-width: 100% !important;
}

#contenuto ul,
#contenuto li {
    padding-left: 1rem;
    margin-left: 0;
}

#contenuto code {
    display: inline-block;
    max-width: 100%;
    white-space: pre-wrap;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .riga { flex-direction: column; }

  .video-box {
    max-width: 100%;
  }

  .riga video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* ===== FONT ===== */
@font-face {
  font-display: swap;
  font-family: 'Karma';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/karma-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/audiowide-v22-latin-regular.woff2') format('woff2');
}

/* ===== OVERRIDES (solo se ti servono davvero) ===== */
main img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

main video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}