@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/lbsr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- Stile generale --- */
body {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: #333;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 16px
}

/* --- Navbar elegante --- */
.navbar {
  background: #e6f7f9;
  border-bottom: 1px solid #cce7e9;
  padding: 0;
  line-height: 1;
}

.nav-content {
  max-width: 80%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 5rem;
  padding: 2rem 10rem;
  height: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.5rem;
  color: #004d40;
}

.nav-logo img {
	height: 50px;
        max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: #00796b;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
  line-height: normal;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: #004d40;
}

button {
  background: #009688;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

button:hover {
  background: #00796b;
}

/* --- Container generale per tutte le pagine (About, Servizi, Contatti, ecc.) --- */

.container {
  display: block;
  max-width: 90%;
  margin: 0 auto auto auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}


/* --- Stili personalizzati --- */
h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: large;
  margin-top: 2rem;
  color: #2a2a2a;
  line-height: 1.2;
  text-align: left;
}

h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: medium;
  color: #555;
  margin-top: 2rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: medium;
  margin-top: 2.5rem;
  text-align: left;
}

p {
	text-indent: 1em;
  	font-family: 'Libre Baskerville', Georgia, serif;
	font-size: small;
}

li {
	font-size: small;
	text-align: left
}

blockquote {
    background: linear-gradient(to right, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
    border-left: 10px solid #ccc;
    margin: 1em 0;
    padding: 0.5em 10px;
}

blockquote p {
  text-indent: 0;
}

a {
  color: #00796b;
  text-decoration: none;
}

a:hover,
a:focus,
a:active,
a:visited {
  color: #00796b;
  text-decoration: none;
}

.home-page h1 {
	 margin-top: 1rem;
	 margin-bottom: 0.5rem;
	 text-align: center;
	 font-size: x-large;
}

.home-page h2 {
	 margin-top: 1rem;
	 margin-bottom: 0.5rem;
	 text-align: center;
	 font-size: x-large;
 }

/* --- Hero section: testo + immagine --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 2% auto;
  padding: 0 2rem;
}

.hero-text {
  flex: 1 1 50%;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo {
  flex: 1 1 40%;
  text-align: right;
  position: relative;
  max-width: 250px;
  display: block;
}

/* --- Immagine principale con animazione --- */
.profile.animated {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 0;
  opacity: 0;
  transform: translateX(50px);
  animation: slideFadeRight 0.8s ease-out 0.4s forwards;
}

/* --- Riflesso immagine --- */
.reflection-container {
  width: 100%;
  max-width: 250px;
  height: 50px; /* mostra circa 20% dell'immagine */
  overflow: hidden;
  position: relative;
  margin-top: -5px; /* leggero sovrapporsi */
}

.reflection-container .reflection {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleY(-1); /* capovolto */
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.2s forwards;
}

.reflection-container .reflection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}

/* --- Animazioni per header --- */
.animate-header {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideFadeLeft 0.8s ease-out 0.2s forwards;
}

.animate-subheader {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideFadeLeft 0.8s ease-out 0.4s forwards;
}

/* --- Animazioni compatibili tutti browser --- */
@keyframes slideFadeLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideFadeRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 0.4; }
}

@keyframes slideFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.main-content {
  display: block;
  width: 90%;
  max-width: 85%;
  clear: both;
  margin: 2rem auto;
  opacity: 0;
  transform: translateY(20px);
  animation: slideFadeUp ease-out 1.6s forwards;
}

.main-content p {
	text-align: justify;
}

.main-content ul
.main-content li
.main-content h1
.main-content h2 {
  text-align: left !important;
}

.main-content ul
.main content li {
	  text-align: left !important;
}


/* --- Margini e centratura responsive --- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 2rem;
    align-items: center;
  }

  .hero-photo {
    text-align: center;
  }

  .reflection-container {
    margin-left: auto;
    margin-right: auto;
  }
  .main-content {
  	padding-left: 0;
	text-align: center;
  }
  .nav-content{
	  padding: 2rem 1rem;
	  margin: auto;
  }
}

.footnotes {
  font-size: 0.8em;
}

.footnotes hr {
  width: 90%;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border: 1px dotted #ccc;
}



/* --- Footer --- */
.footer {
  background: #e6f7f9;
  padding: 1rem;
  text-align: center;
  margin-top: 3rem;
}
