body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1.1em;
  line-height: 1.3;
  background-color: #f4f4f4;
}

p {
  font-size: 1.1em; 
  line-height: 1.3;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: #1a1a1a;
}

th,
td,
ul,
.content p,
.paragrafo-punti li,
.paragrafo-punti ul,
.event,
.Riflessioni,
.timeline-wrapper {
  font-family: Arial, sans-serif;
  font-size: 1.1em;
  line-height: 1.3;
}

/* Intestazioni */
h2 {
  font-size: 1.5em;
  font-weight: bold;
  color: #3A4F63;
  margin-bottom: 15px;
}

html {
  -webkit-text-size-adjust: 100%;  /* Safari/Chrome mobile */
  -ms-text-size-adjust: 100%;      /* IE Mobile */
  text-size-adjust: 100%;          /* future‑proof */
}


/* --- Reset di base --- */
* {
  box-sizing: border-box;
}
/* --- serve per evitare l'avviso senza titolo e quindi per rendere più accesibile la lettura al browser --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content p {
  font-size: 1.1em;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: justify;
  text-justify: inter-word; /* --- con questi parametri giustifico il testo( aalineo il testo su entrambi i margini sx e dx del contenitore--- */
  hyphens: auto;
}

/* --- Larghezza massima e centratura per tutte le sezioni e dei box contenitori --- */
header,
.navbar,
.content,
#Opere,
footer,
.paragrafo-punti,
.contenitore-due-colonne,
.box-colonne,
section {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

header {
  background-color: #222222;
  color: white;
  text-align: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 15px;
  margin-top: 10px;
  margin-bottom:10px ;
}

header h1 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

header h3 {
  font-size: 0.8em;
  margin: 15px;
}

/* --- Link --- */
a {
  color: blue;
  text-decoration: underline;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #748C70;
  border-radius: 15px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
  padding: 15px 30px;
  position: relative;
}

.navbar,
.navbar-links {
  flex-wrap: nowrap;
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 60px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  flex: 1;
}

.navbar-links li a {
  color: navy;
  text-decoration: none;
  font-weight: bold;
}

.navbar-links li a {
  font-size: 25px !important;
}


.navbar-links li a:hover {
  text-decoration: underline;
}

/* --- contenitori sfondo uguali per tutti --- */
.box-colonne,
.content,
.contenitore-due-colonne {
  background-color: white;
  padding: 30px;
  margin: 30px auto;
  border-radius: 15px;
}

.box-colonne {
  display: flex;
  flex-wrap: wrap ;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.col-sinistra {
  flex: 1 1 100%;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.3;
  font-size: 1.1em;
}

.col-destra img {
  max-width: 100%;
  height: auto;
  border-radius: 5%;
  -webkit-border-radius: 5%;
  -moz-border-radius: 5%;
  -ms-border-radius: 5%;
  -o-border-radius: 5%;
}

.citazione {
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.3;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* --- Titoli uguali per tutti--- */
.content h2,
h2,
.tabella-personaggi h2,

.paragrafo-punti h2 {
  color: #3A4F63;
  margin-top: 0;
}

.contenitore-due-colonne {
  display: flex;
  gap: 30px;
  padding: 30px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
  flex-wrap: wrap;
}
.col-sinistra,
.colonna-destra{
    flex: 1 1 500px;
}


.paragrafo-punti {
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  margin: 0;

}

.paragrafo-punti li {
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  display: block;
}
.paragrafo-punti li strong {
  display: inline;
}

.paragrafo-punti {
  text-align: justify; 
}
.paragrafo-punti ul {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.3;
   padding-left: 20px;

}


/* contenitore della tabella PERSONAGGI, CHE FATICAAAAA */
.tabella-personaggi {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

/* stile base della tabella*/
.tabella-personaggi table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

/* intestazione */
.tabella-personaggi th {
  background-color: #3A4F63;
  color: #fff;
  font-weight: bold;
  padding: 12px 15px;
  text-align: left;
}

/* celle dati */
.tabella-personaggi td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  color: #1a1a1a;
}

/* con questi parametri arrotondo solo gli angoli esterni del <table> */
.tabella-personaggi table tr:first-child th:first-child {
  border-top-left-radius: 8px;
}
.tabella-personaggi table tr:first-child th:last-child {
  border-top-right-radius: 8px;
}
.tabella-personaggi table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.tabella-personaggi table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}


/* --- sezione timeline --- */
.timeline-wrapper,
.timeline-wrapper li {
  text-align: left !important;
  text-justify: auto !important;
  hyphens: none !important;
}

.timeline-title {
  text-align: center;
  font-size: 25px;
  color: #3A4F63;
  margin-bottom: 40px;
}

.no-bullets {
  list-style: none; /* --- mi nasconde i simboli dell'elenco --- */
  padding-left: 0; /* --- toglie il rientro inziale-- */
  margin: 0; /* --- elimina spazio attorno alla linea--- */
}

.timeline-wrapper { /* --- contenitore grannde della timeline --- */
  width: 100%;
  padding: 30px;
  background-color: white;
  border-radius: 15px; /* Uguale a contenitore-due-colonne */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* --- parmatri per ombra effetto "card" --- */
  box-sizing: border-box; /* --- padding incluso nella larghezza--- */
   margin-bottom: 30px;
   margin-top: 30px;
 
}

.event ul li {
  font-size: 0.7em; 
  line-height: 1.3;
}
.event ul {
  margin: 0;
  padding-left: 0;
}

.timeline-horizontal {
  display: flex; /* --- disposizione orizzontale --- */
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto; /* ---con questo comando creo una barra di scorrimento(scrollbar) nella timeline si attiva se gli elementi non ci stanno (ovviamente) il browser lo aggiunge alla barra di scorrimento quando necessario--- */
  gap: 20px;
  padding: 20px 0; /* --- spazio del pallino verde sotto-sopra --- */
  border-top: 5px solid #3A4F63; /* --- posizione del pallino verde --- */
}

.event {
  position: relative;
  min-width: 280px;
  max-width: 320px;
  background: #F9F8F4;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  flex-shrink: 0;
}

.event::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%); /* --- questo mi serve per mantenere il pallino al centro, prima si usava: margin left -50%--- */
  width: 16px;
  height: 16px;
  background-color: #748C70;
  border: 15px solid white;
  border-radius: 50%;
}

.event h3 {
  margin-top: 0;
  color: #3A4F63;
   font-size: 1.3em;
}
.event p {
  font-size: 0.8em;
}
  
#cuore1 li,
#cuore2 li {
  margin-bottom: 1.3em;
  margin-top: 1.3em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}


.content {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.3;

}

.foto-viaggio{
    border-radius: 15px;
}
.foto-chautauqua{
    border-radius: 15px; 
  
}

/* --- Footer --- */
footer {
  background-color: #222222;
  color: white;
  padding: 10px 60px; 
  font-size: 0.8em;
  border-radius: 15px;
  margin: 30px auto 0 auto;
  max-width: 1200px;
  width: 100%;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  }

.footer-text {
  flex: 1;

}

footer p {
  color: white !important;
}

.firma-footer img {
  height: 50px; 
  width: auto;
  object-fit: contain;
  display: block;
  padding: 0 60px ;

}

.citazione i {
  color: #3A4F63 !important;
}

/* --- pag sotto i 630px  --- */
/* Navbar principale */

.box-colonne,
.contenitore-due-colonne {
  flex-wrap: wrap;
}

.immagini-opere {
  flex-wrap: wrap;
}




/* --- nuova regola aggiuta per vedere su schermi da 630px, in poche parole per renderela responsive--- */
/* 1) Punto di rottura attorno ai 630px */


/* --- pagine sotto i 630px --- */
@media (max-width: 630px) {
  /* header */
  header h1 { font-size: 1.2em; }
   .navbar-links  {
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .navbar-links li a { 
    font-size: 1em; 
  }
  
  .box-colonne,
  .contenitore-due-colonne {
    flex-direction: column;
    gap: 20px;
  }
  .box-colonne img,
  .immagini-opere img {
    max-width: 100%;
    height: auto;
  }
  /* galleria opere */
  .immagini-opere {
    flex-direction: column;
    gap: 20px;
  }
  /* opere lista */
  .paragrafo-punti ol li,
  .paragrafo-punti ul li {
    width: 100%;
    margin-bottom: 15px;
  }
  /* timeline */
  .timeline-horizontal {
    flex-direction: column;
    overflow-x: visible;
  }
  .timeline-horizontal .event {
    width: 100%;
    margin-bottom: 15px;
  }
  /* footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
  }
  .firma-footer img {
    height: 40px;
  }
}

.navbar-links li a.current {
  /* colore del link attivo */
  color: rebeccapurple; 
  /* linea di sottolineatura del suo stesso colore */
  border-bottom: 2px solid currentColor; 
  /* un piccolo padding sotto per staccare il bordo dal testo mi serve per enfatizzare il buttom */
  padding-bottom: 2px;
}
.citazione,
.citazione-frase {
  margin: 0;
  padding: 20px !important;
}