body {
  padding-top: 70px;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #111;
  line-height: 1.7;
  background-color: #fff;
}
h1, h2, h3, h4, h5 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1em;
}

/* HERO */
.hero {
  min-height: 100vh;
}


.logo {
  width: 420px;
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

.tagline {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 30px auto 0;
}

/* Responsive fine-tuning */
@media (max-width: 768px) {
  .logo {
    width: 220px;
  }

  .tagline {
    font-size: 1.1rem;
  }
}

/* FOOTER */
.site-footer {
  background-color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer strong {
  font-weight: 600;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* HEADER */
.site-header {
  background-color: #f5f5f5;
}

.site-header .nav-link,
.site-header .navbar-brand {
  color: #000000;
}

.site-header .nav-link:hover {
  color: #000000;
}

#ieri-e-oggi img {
  border-radius: 4px;
}

/* CERTIFICAZIONI – layout riga */
.certificato-img{
  max-height: 180px;   /* 👈 più piccoli */
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.certificazioni p{
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.certificazioni ul{
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
}

.certificazioni li{
  font-size: 0.95rem;
}

.homepage-intro{
  font-family: 'Inter', Arial, Helvetica, sans-serif; /* 👈 stesso stile logo */
  font-size: 1.6rem;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-page {
  padding: 80px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
}

.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.news-item {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

.news-item:first-of-type {
  border-top: none;
}

.news-date {
  font-size: 0.9rem;
  color: #777;
}

.news-title {
  margin: 10px 0;
  font-size: 1.3rem;
}

.news-text {
  line-height: 1.6;
  max-width: 900px;
}

.text-content {
  max-width: 850px;
  margin: 0 auto;
}

.text-justify p {
  text-align: justify;
  hyphens: auto;
}

.text-justify h3,
.text-justify h4 {
  text-align: center;
}
.text-justify h4 {
  margin-bottom: 15px;
}

.certificazioni h2,
.certificazioni h3,
.certificazioni h4 {
  font-weight: 600;
}
body {
  padding-top: 70px;
}

/* HERO */
.hero {
  min-height: 80vh; /* oppure 50vh */
  display: flex;
  align-items: center;
}


.logo {
  width: 420px;
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

.tagline {
  font-size: 1.4rem;
  max-width: 720px;
  margin: 15px auto 0;
}

/* Responsive fine-tuning */
@media (max-width: 768px) {
  .logo {
    width: 220px;
  }

  .tagline {
    font-size: 1.1rem;
  }
}

/* FOOTER */
.site-footer {
  background-color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer strong {
  font-weight: 600;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* HEADER */
.site-header {
  background-color: #f5f5f5;
}

.site-header .nav-link,
.site-header .navbar-brand {
  color: #000000;
}

.site-header .nav-link:hover {
  color: #000000;
}

#ieri-e-oggi img {
  border-radius: 4px;
}

.homepage-intro {
  font-size: 1.6rem;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-page {
  padding: 80px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
}

.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.news-item {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

.news-item:first-of-type {
  border-top: none;
}

.news-date {
  font-size: 0.9rem;
  color: #777;
}

.news-title {
  margin: 10px 0;
  font-size: 1.3rem;
}

.news-text {
  line-height: 1.6;
  max-width: 900px;
}

button {
  background-color: #000; /* Nero come il tuo header */
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 50px; /* Arrotondato */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button:active {
  transform: translateY(0);
}

.footer-logo{
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: -40px auto 0;   /* 👈 alza il logo */
}

.page-servizi .subtitle{
  margin-bottom: 70px;
}

.footer-copy{
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
}

/* =========================
   HOME (MOBILE) - SPACING
   ========================= */
@media (max-width: 768px){

  /* evita “buchi” eccessivi e spazio sopra al logo */
  .hero{
    min-height: auto !important;
    padding: 70px 0 18px !important;  /* ↓ riduce spazio sopra */
  }

  /* logo */
  .logo{
    width: 240px;
    max-width: 85%;
    margin: 0 auto !important;
    display: block;
  }

  /* tagline: più vicina al logo */
  .tagline{
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 12px auto 0 !important;
    max-width: 92%;
  }

  /* blocco intro: più stacco rispetto alla tagline */
  .homepage-intro{
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.12rem;
    line-height: 1.5;
    margin: 22px auto 0 !important;  /* ← questo è lo stacco reale */
    max-width: 92%;
  }

  /* IMPORTANTISSIMO:
     se il container ha ancora mb-5, lo annulliamo solo su mobile */
  .homepage-block{
    margin-top: 0 !important;
    margin-bottom: 50px !important;
  }
}

/* ===== HAMBURGER MODERNO ===== */

.custom-toggler{
  border: none;
  padding: 8px;
  background: transparent;
}

/* Linee */
.toggler-line{
  display: block;
  width: 26px;
  height: 2px;
  background-color: #000;
  margin: 6px 0;
  transition: all 0.35s ease;
}

/* Hover leggero */
.custom-toggler:hover .toggler-line{
  background-color: #555;
}

/* Animazione quando aperto */
.custom-toggler.active .toggler-line:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.active .toggler-line:nth-child(2){
  opacity: 0;
}

.custom-toggler.active .toggler-line:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* PAGINA RADICI */
.radici-dedica{
  border-top: 1px solid #ddd;
  padding-top: 30px;
  margin-top: 50px;
}

@media (max-width: 768px){

  .radici-dedica{
    margin-top: 40px;
    padding-top: 25px;
  }

}

@media (max-width: 768px){

  .home-cta{
    margin-top: 5px;
    padding: 10px 22px;
    font-size: 0.9rem;
  }

}

.homepage-highlight{
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;   /* ← stessa dimensione intro */
  margin-top: 18px;
  line-height: 1.4;
}

@media (max-width: 768px){

  .homepage-highlight{
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 14px;
  }

}

.navbar-brand img{
height:38px;
}

.back-arrow{
position:absolute;
left:60px;     /* meno estremo a sinistra */
top:30px;      /* più in alto */
font-size:34px;
text-decoration:none;
color:#333;
transition:0.2s;
}

.back-arrow:hover{
transform:translateX(-4px);
color:#000;
}

.referente-page{
position:relative;
}

@media (max-width:768px){

.back-arrow{
position:relative;
display:block;

margin-top:10px;
margin-bottom:35px;   /* più spazio dal titolo */

margin-left:-40px;    /* la sposta leggermente più a sinistra */
margin-right:auto;

width:fit-content;
font-size:28px;
}

}